Skip to content
This repository has been archived by the owner on May 18, 2020. It is now read-only.

Commit

Permalink
fix throw/catch mismatch when loading program via command line
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfgang Jaehrling committed Jul 27, 2016
1 parent 1c4bfb9 commit 5d2a7f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ int main(int argc, char **argv) {
bone_load("prelude");
bone_load("posixprelude");
if (argc > 1) {
bone_load(argv[1]);
try {
bone_load(argv[1]);
} catch {
return 1;
}
return 0;
}
printf("Bone Lisp " BONE_VERSION);
Expand Down

0 comments on commit 5d2a7f3

Please sign in to comment.