diff --git a/src/parser/unit.yy b/src/parser/unit.yy index 34febc1bdf..03ebf31ed2 100644 --- a/src/parser/unit.yy +++ b/src/parser/unit.yy @@ -107,7 +107,7 @@ table_insertion try { $1->insert($2); } - catch (std::runtime_error e) { + catch (const std::runtime_error& e) { error(scanner.loc, e.what()); } $$ = $1;