Permalink
Browse files

print description of unhandled exceptions

  • Loading branch information...
sstiller committed Jan 15, 2019
1 parent ee2eab9 commit c25bc8819e3d57d7b8b65e68f8aa0a1be264df79
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main.cpp
@@ -134,9 +134,9 @@ int main(int argc, char *argv[])
try {
scxmlcc(opt);
}
catch (...) {
cerr << "Unandled error!" << endl;
catch (const std::exception& exc) {
cerr << "Unhandled exception: " << exc.what() << '\n';
return 1;
}
}
return 0;
}

0 comments on commit c25bc88

Please sign in to comment.