Commit 1aef0334 authored by Kevin Modzelewski's avatar Kevin Modzelewski

add a try-catch around the repl

parent 5341455f
......@@ -227,7 +227,12 @@ int main(int argc, char** argv) {
m->body[0] = p;
}
compileAndRunModule(m, main);
try {
compileAndRunModule(m, main);
} catch (Box* b) {
std::string msg = formatException(b);
fprintf(stderr, "%s\n", msg.c_str());
}
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment