[GRASS-SVN] r53905 - grass/trunk/lib/python/pygrass/modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 19 01:54:20 PST 2012
Author: zarch
Date: 2012-11-19 01:54:19 -0800 (Mon, 19 Nov 2012)
New Revision: 53905
Modified:
grass/trunk/lib/python/pygrass/modules/__init__.py
Log:
Improve the error message, when the parameter is not found.
Modified: grass/trunk/lib/python/pygrass/modules/__init__.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/__init__.py 2012-11-19 07:43:42 UTC (rev 53904)
+++ grass/trunk/lib/python/pygrass/modules/__init__.py 2012-11-19 09:54:19 UTC (rev 53905)
@@ -471,7 +471,7 @@
# verbose and quiet) work like parameters
self.flags_dict[key].value = val
else:
- raise ParameterError('Parameter not found')
+ raise ParameterError('%s is not a valid parameter.' % key)
#
# check reqire parameters
More information about the grass-commit
mailing list