Spit out at least some message when flag parsing etc. fails

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
Nathan LeClaire 2015-10-19 17:30:59 -07:00
parent 43543d1579
commit c93b79abef
1 changed files with 3 additions and 2 deletions

View File

@ -160,8 +160,9 @@ func main() {
}() }()
// TODO: Close plugin servers in case of client panic. // TODO: Close plugin servers in case of client panic.
if err := app.Run(os.Args); err != nil {
app.Run(os.Args) log.Error(err)
}
close(commands.RpcClientDriversCh) close(commands.RpcClientDriversCh)
<-commands.RpcDriversClosedCh <-commands.RpcDriversClosedCh