]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/decorators.py
OSQA-313
[osqa.git] / forum / views / decorators.py
index f9929ffacde158b7175c91f441d139f160e02853..37413d29e6872039ef10830ef3746b7b900b1ea9 100644 (file)
@@ -81,7 +81,7 @@ def command(func):
             if isinstance(e, CommandException):\r
                 response = {\r
                     'success': False,\r
-                    'error_message': str(e)\r
+                    'error_message': e.message\r
                 }\r
             else:\r
                 logging.error("%s: %s" % (func.__name__, str(e)))\r