[ox/std] Add const char *toStr(const ox::Error&)
This commit is contained in:
parent
dc2a5039f8
commit
53939a28c6
5
deps/ox/src/ox/std/error.hpp
vendored
5
deps/ox/src/ox/std/error.hpp
vendored
@ -75,6 +75,11 @@ struct [[nodiscard]] Error {
|
||||
|
||||
};
|
||||
|
||||
[[nodiscard]]
|
||||
constexpr auto toStr(const Error &err) noexcept {
|
||||
return err.msg;
|
||||
}
|
||||
|
||||
struct Exception: public std::exception {
|
||||
const char *msg = nullptr;
|
||||
const char *file = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user