aboutsummaryrefslogtreecommitdiff
path: root/modules/commands/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/__init__.py')
-rw-r--r--modules/commands/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/__init__.py b/modules/commands/__init__.py
index e01adb8b..1a3587b0 100644
--- a/modules/commands/__init__.py
+++ b/modules/commands/__init__.py
@@ -151,7 +151,7 @@ class Module(ModuleManager.BaseModule):
force_success = True
break
elif type == utils.consts.PERMISSION_ERROR:
- error = returned
+ error = message
if hard_fail:
return False, error