Permalink
Browse files

Merge pull request #92 from sstiller/better-error-messages

print description of unhandled exceptions
  • Loading branch information...
jp-embedded committed Jan 15, 2019
2 parents ee2eab9 + c25bc88 commit c186add6b0bec44db6ec8dfe4bddef894566065b
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 c186add

Please sign in to comment.