[ox/trace] Cleanup oxLogError's output

This commit is contained in:
Gary Talent 2018-07-07 14:34:36 -05:00
parent 35df47eaf8
commit 86b36b48a3

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 << "Error:\t" << ei.errCode;
trc << "Error:" << ei.errCode;
if (ei.file != nullptr) {
trc << " (" << reinterpret_cast<const char*>(ei.file) << ":" << ei.line << ")";
trc << "(" << reinterpret_cast<const char*>(ei.file) << ":" << ei.line << ")";
}
}
}