Skip to contentSkip to conversation

bin/bitbake: Clarify server error message

PATCH New Richard Purdie 1 participant 1 message Oct 4, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bin/bitbake: Clarify server error message

Getting an error message about --remote-server being set when really BBSERVER was is confusing, clarify the message.

---

bitbake/bin/bitbake +2 -2
index 920c6c4..88893f8 100755
@@ -262,8 +262,8 @@ def main():
         if not configParams.bind:
             sys.exit("FATAL: The '--server-only' option requires a name/address to bind to with the -B option.\n")
         if configParams.remote_server:
-            sys.exit("FATAL: The '--server-only' option conflicts with the '--remote-server' option. %s\n" % 
-                ("Please check your BBSERVER environment" if "BBSERVER" in os.environ else "" ))
+            sys.exit("FATAL: The '--server-only' option conflicts with %s.\n" % 
+                ("the BBSERVER environment variable" if "BBSERVER" in os.environ else "the '--remote-server' option" ))
 
     if configParams.bind and configParams.servertype != "xmlrpc":
         sys.exit("FATAL: If '-B' or '--bind' is defined, we must set the servertype as 'xmlrpc'.\n")