summaryrefslogtreecommitdiff
path: root/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'error.h')
-rw-r--r--error.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/error.h b/error.h
index 630fc7f..f0a67a5 100644
--- a/error.h
+++ b/error.h
@@ -17,5 +17,10 @@ typedef unsigned int ErrCode;
struct Err
{
ErrCode code;
- std::string errorMessage;
+ std::string message;
+ Err(ErrCode code, std::string message)
+ {
+ this->code = code;
+ this->message = message;
+ }
};