Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaTwice committed Mar 8, 2023
1 parent 51a025a commit c372910
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/thread_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "thread_util.h"

#include <fmt/std.h>
#include <pthread.h>

namespace Util {
Expand All @@ -37,7 +38,7 @@ Status ThreadOperationImpl(std::thread &t, const char *op, Args &&...args) {
try {
(t.*F)(std::forward<Args>(args)...);
} catch (const std::system_error &e) {
return {Status::NotOK, fmt::format("thread #{} cannot be `{}`ed: {}", op, t.get_id(), e.what())};
return {Status::NotOK, fmt::format("thread #{} cannot be `{}`ed: {}", t.get_id(), op, e.what())};
}

return Status::OK();
Expand Down

0 comments on commit c372910

Please sign in to comment.