Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
throw a more specific exception
Browse files Browse the repository at this point in the history
  • Loading branch information
honnix committed Apr 28, 2017
1 parent 4778ab5 commit 537c1e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ private void ensureSecrets(WorkflowInstance workflowInstance, RunSpec runSpec) {
jsonKey = serviceAccountKeyManager.createJsonKey(serviceAccount);
p12Key = serviceAccountKeyManager.createP12Key(serviceAccount);
} catch (IOException e) {
logger.error("[AUDIT] Failed to create keys for service account {}", serviceAccount, e);
throw new RuntimeException(e);
logger.error("[AUDIT] Failed to create keys for {}", serviceAccount, e);
throw new InvalidExecutionException("Failed to create keys for " + serviceAccount);
}

final Map<String, String> keys = ImmutableMap.of(
Expand Down

0 comments on commit 537c1e9

Please sign in to comment.