diff --git a/weed/command/mini.go b/weed/command/mini.go index 41cdcd078..12d51a8f0 100644 --- a/weed/command/mini.go +++ b/weed/command/mini.go @@ -706,7 +706,7 @@ func runMini(cmd *Command, args []string) bool { // Ensure all ports are available, find alternatives if needed if err := ensureAllPortsAvailableOnIP(bindIp); err != nil { glog.Errorf("Port allocation failed: %v", err) - return false + os.Exit(1) } // Set master.peers to "none" if not specified (single master mode)