Skip to content

Commit

Permalink
add exception to logs when delete fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Nov 1, 2024
1 parent 60c39dc commit 73a6bb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Project-Aurora/Aurora-Updater/UpdateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,10 @@ private void PerformCleanup()
{
File.Delete(file);
}
catch
catch(Exception e)
{
_log.Add(new LogEntry("Unable to delete file - " + file, Color.Red));
_log.Add(new LogEntry(e.Message, Color.Red));
}
}

Expand Down

0 comments on commit 73a6bb1

Please sign in to comment.