Skip to content
Snippets Groups Projects
Commit a3d87e73 authored by Sam Yates's avatar Sam Yates
Browse files

Better error message on missing file.

* Don't call a missing file an 'internal compiler error'.
parent 4d63988a
No related branches found
No related tags found
No related merge requests found
......@@ -308,13 +308,16 @@ int main(int argc, char **argv) {
}
}
}
catch(compiler_exception& e) {
catch (io::bulkio_error& e) {
return report_error(e.what());
}
catch (compiler_exception& e) {
return report_ice(e.what()+std::string(" @ ")+to_string(e.location()));
}
catch(std::exception& e) {
catch (std::exception& e) {
return report_ice(e.what());
}
catch(...) {
catch (...) {
return report_ice("");
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment