Skip to content

Commit

Permalink
show full stack trace for errors while running isolate initialization…
Browse files Browse the repository at this point in the history
… hooks
  • Loading branch information
dougxc committed Jul 13, 2021
1 parent bacb66d commit 47826c5
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,14 @@ private static int initializeIsolate(CEntryPointCreateIsolateParameters paramete
assert !isolateInitialized;
isolateInitialized = true;

RuntimeSupport.executeInitializationHooks();
try {
RuntimeSupport.executeInitializationHooks();
} catch (Throwable t) {
System.err.println("Uncaught exception while running initialization hooks:");
t.printStackTrace();
return CEntryPointErrors.ISOLATE_INITIALIZATION_FAILED;
}

return CEntryPointErrors.NO_ERROR;
}

Expand Down

0 comments on commit 47826c5

Please sign in to comment.