mu: improve error reporting

This commit is contained in:
Dirk-Jan C. Binnema
2022-05-15 13:40:44 +03:00
parent f2c0af7413
commit 6e37790012
4 changed files with 7 additions and 10 deletions

View File

@ -150,7 +150,7 @@ struct Error final : public std::exception {
}
constexpr uint8_t exit_code() const {
return ((static_cast<uint32_t>(code_) >> 15) & 0xf);
return ((static_cast<uint32_t>(code_) >> 15) & 0xff);
}