aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/src/compiler_main.cpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-24 17:32:19 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-24 17:32:19 +0000
commite539805d39de73e25eeaa48a48730255c4ae695f (patch)
tree9a15bcc1f5c03214085ebf90d51e999456174074 /c_compiler/src/compiler_main.cpp
parent3a8cbbd0c0b9b8bc80d4346d98a305671f0869a9 (diff)
downloadCompiler-e539805d39de73e25eeaa48a48730255c4ae695f.tar.gz
Compiler-e539805d39de73e25eeaa48a48730255c4ae695f.zip
Pointers working
Diffstat (limited to 'c_compiler/src/compiler_main.cpp')
-rw-r--r--c_compiler/src/compiler_main.cpp4
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(...)
{