summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/modules.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h
index 07da2989f..2e0a614c5 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -289,12 +289,15 @@ class ExtMode : public classbase
class ModuleException
{
+ private:
+ std::string err;
public:
- ModuleException() {};
+ ModuleException() : err("Module threw an exception") {}
+ ModuleException(std::string message) : err(message) {}
virtual ~ModuleException() {};
virtual char *GetReason()
{
- return "Module threw an exception";
+ return (char*)err.c_str();
}
};