Skip to content

Commit dec355b

Browse files
committed
Replace System.exit(1) with throwing a RuntimeException
1 parent bb9a8f8 commit dec355b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/pascal/taie/Main.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,8 @@ private static void buildWorld(Options options, List<AnalysisConfig> analyses) {
143143
.mapToInt(c -> c.getDeclaredMethods().size())
144144
.sum());
145145
} catch (InstantiationException | IllegalAccessException |
146-
NoSuchMethodException | InvocationTargetException e) {
147-
System.err.println("Failed to build world due to " + e);
148-
System.exit(1);
146+
NoSuchMethodException | InvocationTargetException e) {
147+
throw new RuntimeException("Failed to build world", e);
149148
}
150149
}, "WorldBuilder");
151150
}

0 commit comments

Comments
 (0)