From: David Stainton <dstainton415@gmail.com>
Date: Wed, 15 Jul 2015 19:32:53 +0000 (-0700)
Subject: slightly better error message
X-Git-Url: https://git.rkrishnan.org/simplejson/quickstart.html?a=commitdiff_plain;h=bec31e9810b37e4fa544a0f41aff8dcd00f7d26a;p=tahoe-lafs%2Ftahoe-lafs.git

slightly better error message
---

diff --git a/src/allmydata/scripts/magic_folder_cli.py b/src/allmydata/scripts/magic_folder_cli.py
index 2b2aca38..08c47767 100644
--- a/src/allmydata/scripts/magic_folder_cli.py
+++ b/src/allmydata/scripts/magic_folder_cli.py
@@ -21,7 +21,7 @@ class CreateOptions(BasedirOptions):
         self.nickname = nickname
         self.localdir = localdir
         if self.nickname and not self.localdir:
-            raise usage.UsageError("must provide both")
+            raise usage.UsageError("If NICKNAME is specified then LOCALDIR must also be specified.")
         node_url_file = os.path.join(self['node-directory'], "node.url")
         self['node-url'] = open(node_url_file, "r").read().strip()