commands: Specify os port generic errors

Closes #2217
This commit is contained in:
Hanchen Wang 2016-06-14 11:48:27 -04:00 committed by Bjørn Erik Pedersen
parent aa690c8e95
commit c52bb4efbe

View file

@ -126,7 +126,7 @@ func server(cmd *cobra.Command, args []string) error {
} else {
if flagChanged(serverCmd.Flags(), "port") {
// port set explicitly by user -- he/she probably meant it!
return newSystemErrorF("Port %d already in use", serverPort)
return newSystemErrorF("Server startup failed: %s", err)
}
jww.ERROR.Println("port", serverPort, "already in use, attempting to use an available port")
sp, err := helpers.FindAvailablePort()