Skip to content

Commit

Permalink
Improve error message in GcsUtil (#23482)
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavbhandari24 authored Oct 5, 2022
1 parent 0bbfb4a commit b7b7136
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,9 @@ public void onFailure(GoogleJsonError e, HttpHeaders responseHeaders) throws IOE
readyToEnqueue = false;
lastError = null;
} else {
throw new FileNotFoundException(e.getMessage());
throw new FileNotFoundException(
String.format(
"Source %s not found. Failed with error: %s", from.toString(), e.getMessage()));
}
} else if (e.getCode() == 403
&& e.getErrors().size() == 1
Expand Down

0 comments on commit b7b7136

Please sign in to comment.