aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index cca0636..2a15a39 100644
--- a/main.cpp
+++ b/main.cpp
@@ -22,14 +22,14 @@ int main(int argc, char** argv) {
try {
file >> main_parser;
- } catch (exception e) {
+ } catch (ParserException & e) {
cout << "Parser error: " << e.what() << endl;
return EXIT_FAILURE;
}
// try {
// circuit.run();
- // } catch (exception e) {
+ // } catch (exception& e) {
// cout << "Circuit error: " << e.what() << endl;
// return EXIT_FAILURE;
// }