[ox/trace] Fix error logging to not log chars as ints
This commit is contained in:
parent
a6b9de9a59
commit
e1494f4ed0
4
deps/ox/src/ox/trace/trace.cpp
vendored
4
deps/ox/src/ox/trace/trace.cpp
vendored
@ -52,9 +52,9 @@ void logError(const char *file, int line, Error err) {
|
||||
if (err) {
|
||||
ErrorInfo ei(err);
|
||||
TraceStream trc(file, line, "ox::error");
|
||||
trc << "\tError:\t" << ei.errCode;
|
||||
trc << "Error:\t" << ei.errCode;
|
||||
if (ei.file != nullptr) {
|
||||
trc << " (" << reinterpret_cast<const char*>(ei.file) << ':' << ei.line << ')';
|
||||
trc << " (" << reinterpret_cast<const char*>(ei.file) << ":" << ei.line << ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user