summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rwxr-xr-xcommon/misc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/misc.py b/common/misc.py
index bbf9c55..1350a2a 100755
--- a/common/misc.py
+++ b/common/misc.py
@@ -57,13 +57,13 @@ class HandleError:
"""
def __init__(self, error, key, target):
# init all necessary variables
- self.error = error
+ self.text = error.text
+ self.condition = error.condition
self.key = key
self.target = target
def report(self):
# return the formatted result string to the user
- condition = self.error.condition
- text = "There was an error requesting %s's %s : %s" % (self.target, self.key, condition)
+ text = "%s, %s resulted in: %s" % (self.text, self.key, self.condition)
return text