Skip to content

Commit

Permalink
Fix segfault on linker error by explicitly catching it (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcauberer committed Feb 13, 2024
1 parent 7fa3ca9 commit 0f2e159
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cpp
Expand Up @@ -46,6 +46,8 @@ bool compileProject(CliOptions &cliOptions) {
std::cout << e.what() << "\n";
} catch (CompilerError &e) {
std::cout << e.what() << "\n";
} catch (LinkerError &e) {
std::cout << e.what() << "\n";
}
return false;
}
Expand Down

0 comments on commit 0f2e159

Please sign in to comment.