Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanchen Wang <hanchen.wang@mail.utoronto.ca>2016-06-14 18:48:27 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-06-16 16:28:06 +0300
commitc52bb4efbe40fe91e3dd7db81432702392550991 (patch)
tree79ae01e207265c66784785fdab65c4eee3100a73 /commands
parentaa690c8e95ec75557503dbb4d8fcd34bc043be60 (diff)
commands: Specify os port generic errors
Closes #2217
Diffstat (limited to 'commands')
-rw-r--r--commands/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/server.go b/commands/server.go
index 4318905b3..b851038a1 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -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()