Skip to content

Commit

Permalink
Throw toolchain resolution error (as EvalError) instead of IllegalSta…
Browse files Browse the repository at this point in the history
…teException if create_compile_action() is called for an action that isn't configured for the toolchain.

PiperOrigin-RevId: 705135234
Change-Id: Iffaf819e9b59cc4925aa7bd14ce5c3f529664b1b
  • Loading branch information
pzembrod authored and copybara-github committed Dec 11, 2024
1 parent ed9b8ca commit a8e2c58
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ public CppCompileAction buildOrThrowIllegalStateException() {
}
}

static final class UnconfiguredActionConfigException extends Exception {
/** Exception thrown when the action is not configured in the toolchain. */
public static final class UnconfiguredActionConfigException extends Exception {
private UnconfiguredActionConfigException(String actionName) {
super(String.format("Expected action_config for '%s' to be configured", actionName));
}
Expand Down

0 comments on commit a8e2c58

Please sign in to comment.