Skip to content

Commit

Permalink
fix build error under g++ 9.3.0 (#2455)
Browse files Browse the repository at this point in the history
  • Loading branch information
laura-ding authored Mar 8, 2021
1 parent ad8899e commit cb84ca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/process/ProcessUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ struct BgRun {

try {
return fut.get();
} catch (std::exception& e) {
return Status::Error(e.what());
} catch (const std::exception& e) {
return Status::Error("%s", e.what());
}
}

Expand Down

0 comments on commit cb84ca5

Please sign in to comment.