[ox/trace] Fix error logging to not log chars as ints

This commit is contained in:
Gary Talent 2018-07-06 22:51:10 -05:00
parent a6b9de9a59
commit e1494f4ed0

View File

@ -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 << ")";
}
}
}