summaryrefslogtreecommitdiff
path: root/gr-utils/python
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2019-04-21 15:54:33 +0200
committerMarcus Müller <mmueller@gnuradio.org>2019-04-21 17:48:55 +0200
commita117a7fc5c4bb4d581489132731647fffcf8b960 (patch)
treeaf5b749f2797c962653e8d572dd720f16c21d7df /gr-utils/python
parent115886220f69126f45cfde8ab19c9e6e81585a76 (diff)
modtool/newmod: Better error reporting on wrong template dir
Diffstat (limited to 'gr-utils/python')
-rw-r--r--gr-utils/python/modtool/core/newmod.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-utils/python/modtool/core/newmod.py b/gr-utils/python/modtool/core/newmod.py
index fbe1731783..9eb80fccf7 100644
--- a/gr-utils/python/modtool/core/newmod.py
+++ b/gr-utils/python/modtool/core/newmod.py
@@ -54,7 +54,7 @@ class ModToolNewModule(ModTool):
def validate(self):
""" Validates the arguments """
- if self.info['modname'] is None:
+ if not self.info['modname']:
raise ModToolException('Module name not specified.')
if not re.match('[a-zA-Z0-9_]+$', self.info['modname']):
raise ModToolException('Invalid module name.')
@@ -65,7 +65,7 @@ class ModToolNewModule(ModTool):
else:
raise ModToolException('The given directory exists.')
if not os.path.isdir(self.srcdir):
- raise ModToolException('Could not find gr-newmod source dir.')
+ raise ModToolException('Could not find gr-newmod source dir \'' + self.srcdir + '\'')
def run(self):
"""