summaryrefslogtreecommitdiff
path: root/error.h
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2023-05-26 21:46:19 +1200
committerBossCode45 <human.cyborg42@gmail.com>2023-05-26 21:46:19 +1200
commit27137ec9d29c36df8117869773203b243849896c (patch)
tree8f457bcc0862ecd176f5fc748b06f66e46082a2e /error.h
parentda3b5b2131d2b4ff5cb127e92090fca568376835 (diff)
downloadYATwm-27137ec9d29c36df8117869773203b243849896c.tar.gz
YATwm-27137ec9d29c36df8117869773203b243849896c.zip
feat: Made keybinds work (I hope)
Note: the config file reloading keybinds isn't quite working, though, need to ungrab the keys
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;
+ }
};