Skip to content

Commit 5e7573b

Browse files
committed
Add log messages
1 parent f01ccbf commit 5e7573b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Flow.Launcher.Infrastructure/Image/ImageLoader.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,11 @@ private static ImageResult GetThumbnailResult(ref string path, bool loadFullImag
233233
image = LoadFullImage(path);
234234
type = ImageType.FullImageFile;
235235
}
236-
catch (NotSupportedException)
236+
catch (NotSupportedException ex)
237237
{
238238
image = Image;
239239
type = ImageType.Error;
240+
Log.Exception($"Failed to load image file from path {path}: {ex.Message}", ex);
240241
}
241242
}
242243
else
@@ -256,10 +257,11 @@ private static ImageResult GetThumbnailResult(ref string path, bool loadFullImag
256257
image = LoadSvgImage(path, loadFullImage);
257258
type = ImageType.FullImageFile;
258259
}
259-
catch (System.Exception)
260+
catch (System.Exception ex)
260261
{
261262
image = Image;
262263
type = ImageType.Error;
264+
Log.Exception($"Failed to load SVG image from path {path}: {ex.Message}", ex);
263265
}
264266
}
265267
else

0 commit comments

Comments
 (0)