Skip to content

Commit 4d22776

Browse files
Include URL during image dimension detection failures
1 parent 9cc8fac commit 4d22776

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/pwabuilder/Services/ManifestCreator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ private async Task<Result<string>> TryGetImageDimensions(Stream imageStream, str
276276
}
277277
catch (Exception imageDimensionError)
278278
{
279-
logger.LogWarning(imageDimensionError, "Unable to identify image dimensions");
279+
logger.LogWarning(imageDimensionError, "Unable to identify image dimensions for {url}", url);
280280
return new Result<string>(null, imageDimensionError);
281281
}
282282
}
@@ -301,7 +301,7 @@ private async Task<Result<string>> TryGetImageMimeType(Stream imageStream, strin
301301
}
302302
catch (Exception imageDimensionError)
303303
{
304-
logger.LogWarning(imageDimensionError, "Unable to identify image mime type");
304+
logger.LogWarning(imageDimensionError, "Unable to identify image mime type for {url}", url);
305305
return new Result<string>(null, imageDimensionError);
306306
}
307307
}

0 commit comments

Comments
 (0)