Skip to content

Commit

Permalink
updated error message
Browse files Browse the repository at this point in the history
  • Loading branch information
d2phap committed Jul 12, 2024
1 parent 68dd0b8 commit f495f5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/ExifGlass.Core/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit f495f5f

Please sign in to comment.