Skip to content

Commit

Permalink
Print errors resulting from server not starting.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhaid committed Jun 29, 2017
1 parent d5b30d4 commit 07b41f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,5 +294,9 @@ func main() {
http.HandleFunc("/authenticate", authenticateHandler(config))
bind := *config.BindAddress + ":" + *config.BindPort
glog.Infof("Starting pam_hook on %s", bind)
http.ListenAndServeTLS(bind, *config.TlsCertFile, *config.TlsKeyFile, nil)
err := http.ListenAndServeTLS(bind, *config.TlsCertFile, *config.TlsKeyFile, nil)
if err != nil {
fmt.Fprintln(os.Stderr, "Failed to start pamhook due to: %s", err)
os.Exit(1)
}
}
Binary file modified pam_hook
Binary file not shown.

0 comments on commit 07b41f8

Please sign in to comment.