Handle run errors

This commit is contained in:
Tyler Treat
2017-06-23 13:56:32 -05:00
parent 6708c6cdfd
commit 09550f0f09
3 changed files with 16 additions and 4 deletions

View File

@@ -183,7 +183,9 @@ func main() {
s.ConfigureLogger()
// Start things up. Block here until done.
server.Run(s)
if err := server.Run(s); err != nil {
server.PrintAndDie(err.Error())
}
}
func configureTLS(opts *server.Options) {