Skip to content

Commit

Permalink
cli: Keep running after unhandled exception
Browse files Browse the repository at this point in the history
  • Loading branch information
PaddiM8 committed Nov 17, 2024
1 parent fcf3130 commit 23bb44a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions cli/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,16 @@
var filePath = result.GetString("file_path");
if (filePath == null)
{
try
while (true)
{
Repl.Run(vmOptions);
}
catch (Exception ex)
{
ExceptionLogger.Log(ex);
try
{
Repl.Run(vmOptions);
}
catch (Exception ex)
{
ExceptionLogger.Log(ex);
}
}

return;
Expand Down

0 comments on commit 23bb44a

Please sign in to comment.