Commit 5016d8c7 authored by Lucian Grijincu's avatar Lucian Grijincu Committed by Sara Golemon

folly: AsyncIOOp: improve logging message: add strerror

Reviewed By: @philippv

Differential Revision: D2240628
parent 0525207e
......@@ -368,7 +368,11 @@ std::ostream& operator<<(std::ostream& os, const AsyncIOOp& op) {
}
if (op.state_ == AsyncIOOp::State::COMPLETED) {
os << "result=" << op.result_ << ", ";
os << "result=" << op.result_;
if (op.result_ < 0) {
os << " (" << errnoStr(-op.result_) << ')';
}
os << ", ";
}
return os << "}";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment