Skip to content

Commit a8d466f

Browse files
committed
feedback: add message to exception.
1 parent d81aafe commit a8d466f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,10 @@ public byte[] sign(byte[] toSign) {
353353
transportFactory.create(),
354354
toSign,
355355
ImmutableMap.of("delegates", this.delegates));
356-
} catch (IOException e) {
356+
} catch (IOException ex) {
357357
// Throwing an IOException would be a breaking change, so wrap it here.
358358
// This should not happen for this credential type.
359-
throw new IllegalStateException(e);
359+
throw new IllegalStateException("Failed to sign: Error obtaining universe domain", ex);
360360
}
361361
}
362362

0 commit comments

Comments
 (0)