throw catchable error from unsupported charToKey

This commit is contained in:
2025-02-28 08:51:08 -06:00
committed by Celtic Minstrel
parent 068e87ea39
commit 94b5bcae53

View File

@@ -65,7 +65,7 @@ cKey charToKey(char ch) {
case '?': case '?':
return {false, w('/'), mod_shift}; return {false, w('/'), mod_shift};
} }
throw "Tried to convert unsupported char to cKey!"; throw std::string {"Tried to convert unsupported char '"} + ch + "' to cKey!";
} }
eKeyMod operator + (eKeyMod lhs, eKeyMod rhs){ eKeyMod operator + (eKeyMod lhs, eKeyMod rhs){