mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 16:17:21 +00:00
1 parent
aa690c8e95
commit
c52bb4efbe
1 file changed
+1
-1
+1
-1
@@ -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()
|
||||||
|
|||||||
Reference in new issue
Block a user