@@ -233,13 +233,14 @@ public ExitStatus run(PrintStream out, List<Path> inputFiles, boolean compareGra
233233 EconomicMap <Object , Object > internPool = EconomicMap .create ();
234234 for (Path file : inputFiles ) {
235235 try (AutoCloseable ignored = libgraal != null ? libgraal .openCompilationRequestScope () : null ) {
236- try {
237- reproducers .add (Reproducer .initializeFromFile (file .toString (), declarations , runtime , options ,
238- factory , globalMetrics , out , internPool ));
239- } catch (Exception e ) {
240- out .println ("Preparation failed for " + file + ": " + e );
241- }
236+ reproducers .add (Reproducer .initializeFromFile (file .toString (), declarations , runtime , options ,
237+ factory , globalMetrics , out , internPool ));
238+ } catch (ReplayParserFailure failure ) {
239+ out .printf ("Preparation failed for %s: %s%n" , file , failure .getMessage ());
240+ return ExitStatus .Failure ;
242241 } catch (Exception e ) {
242+ out .printf ("Preparation failed for %s, which may be caused by breaking JVMCI or replay changes. The causing exception is:%n" , file );
243+ e .printStackTrace (out );
243244 return ExitStatus .Failure ;
244245 }
245246 }
0 commit comments