From 295841c84507dc2cca76e2daf2e39738c16d3c43 Mon Sep 17 00:00:00 2001
From: David Stainton <dstainton415@gmail.com>
Date: Wed, 15 Jul 2015 12:32:53 -0700
Subject: [PATCH] slightly better error message

---
 src/allmydata/scripts/magic_folder_cli.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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()
 
-- 
2.45.2