mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-26 14:32:10 +00:00
parent
aa690c8e95
commit
c52bb4efbe
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ func server(cmd *cobra.Command, args []string) error {
|
||||||
} else {
|
} else {
|
||||||
if flagChanged(serverCmd.Flags(), "port") {
|
if flagChanged(serverCmd.Flags(), "port") {
|
||||||
// port set explicitly by user -- he/she probably meant it!
|
// 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")
|
jww.ERROR.Println("port", serverPort, "already in use, attempting to use an available port")
|
||||||
sp, err := helpers.FindAvailablePort()
|
sp, err := helpers.FindAvailablePort()
|
||||||
|
|
Loading…
Reference in a new issue