mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-26 01:53:08 +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 {
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue