diff options
Diffstat (limited to 'c_compiler/src/compiler_main.cpp')
-rw-r--r-- | c_compiler/src/compiler_main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c_compiler/src/compiler_main.cpp b/c_compiler/src/compiler_main.cpp index e9a12b9..4ac641c 100644 --- a/c_compiler/src/compiler_main.cpp +++ b/c_compiler/src/compiler_main.cpp @@ -15,9 +15,9 @@ int main(int, char**) unsigned label_count = 0; ast->printAsm(bindings, label_count); } - catch(std::string error_msg) + catch(const std::exception& e) { - fprintf(stderr, "%s\n", error_msg.c_str()); + fprintf(stderr, "%s\n", e.what()); } catch(...) { |