From f495f5f5b6476bf6cc000fceff7613ee16423177 Mon Sep 17 00:00:00 2001 From: Phap Dieu Duong Date: Fri, 12 Jul 2024 11:29:44 +0800 Subject: [PATCH] updated error message --- Source/ExifGlass.Core/MainWindow.axaml.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/ExifGlass.Core/MainWindow.axaml.cs b/Source/ExifGlass.Core/MainWindow.axaml.cs index 6486395..04b2e10 100644 --- a/Source/ExifGlass.Core/MainWindow.axaml.cs +++ b/Source/ExifGlass.Core/MainWindow.axaml.cs @@ -573,13 +573,15 @@ private async Task LoadExifMetadatAsync(string? filePath) BoxExifGrid.IsVisible = false; BoxError.IsVisible = true; + + TxtError.Text = "\r\n❌ Error:\r\n"; if (ex.Message.Contains("Target file or working directory doesn't exist")) { - TxtError.Text = "\"exiftool.exe\" is not installed or ExifGlass could not find the path. To resolve this issue, please open the app settings and update the \"Excutable path\"."; + TxtError.Text += "\"exiftool.exe\" is not installed or ExifGlass could not find the path. To resolve this issue, please open the app settings and update the \"Excutable path\"."; } else { - TxtError.Text = ex.Message + "\r\n\r\n" + + TxtError.Text += ex.Message + "\r\n\r\nℹ️ Details:\r\n" + ex.ToString(); } }