Skip to content

Commit

Permalink
Improve error messages in Glide for empty strings.
Browse files Browse the repository at this point in the history
Before the error message was "Load failed for  with size [100, 100]". Now the message is "Load failed for [] with dimensions [100, 100]"

PiperOrigin-RevId: 446289257
  • Loading branch information
sjudd authored and glide-copybara-robot committed May 3, 2022
1 parent 4f29ada commit 9e93e0b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,9 @@ private void onLoadFailed(GlideException e, int maxLogLevel) {
int logLevel = glideContext.getLogLevel();
if (logLevel <= maxLogLevel) {
Log.w(
GLIDE_TAG, "Load failed for " + model + " with size [" + width + "x" + height + "]", e);
GLIDE_TAG,
"Load failed for [" + model + "] with dimensions [" + width + "x" + height + "]",
e);
if (logLevel <= Log.INFO) {
e.logRootCauses(GLIDE_TAG);
}
Expand Down

0 comments on commit 9e93e0b

Please sign in to comment.