mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-25 22:40:44 +01:00
fix: don't print usage on port allocation error
When a port allocation fails (e.g., explicit port is unavailable), exit immediately without showing the usage example. This provides cleaner error output when the error is expected (port conflict).
This commit is contained in:
1 parent
a2e77cb433
commit
c5af6a82c7
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user