Skip to content

Commit

Permalink
Remove unneeded use CompilationFailedException.
Browse files Browse the repository at this point in the history
The constructors of the exception are not intended to be part of the API.

PiperOrigin-RevId: 520249521
Change-Id: I88780edf24d4294c0ee4b27970e796d991716871
  • Loading branch information
Googler authored and copybara-github committed Mar 29, 2023
1 parent aaf1d06 commit 0ddf9bf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,15 +378,15 @@ public static void run(String[] args) throws CompilationFailedException, IOExcep
}
}

public static void main(String[] args) throws CompilationFailedException {
public static void main(String[] args) {
try {
if (PRINT_ARGS) {
printArgs(args);
}
run(args);
} catch (CompilationFailedException | IOException e) {
System.err.println("Merge failed: " + e.getMessage());
throw new CompilationFailedException("Merge failed: " + e.getMessage());
throw new RuntimeException("Merge failed: " + e.getMessage(), e);
}
}

Expand Down

0 comments on commit 0ddf9bf

Please sign in to comment.