Skip to content

Commit

Permalink
init_daq_repeat_test: fix ordering of catch() statements
Browse files Browse the repository at this point in the history
  • Loading branch information
flueke committed Jul 29, 2024
1 parent 3cc7f5c commit 4eb98f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extras/dev-tools/mvlc_init_daq_repeat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@ int main(int argc, char *argv[])

return 0;
}
catch(const std::exception& e)
catch (const std::system_error &e)
{
std::cerr << "Exception:" << e.what() << '\n';
std::cerr << "System error: " << e.what() << '\n';
return 1;
}
catch (const std::system_error &e)
catch(const std::exception& e)
{
std::cerr << "System error: " << e.what() << '\n';
std::cerr << "Exception:" << e.what() << '\n';
return 1;
}

Expand Down

0 comments on commit 4eb98f5

Please sign in to comment.