Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisdeguet committed Oct 16, 2024
1 parent 2842429 commit 70caff2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scriptsharp/ScriptSharp/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ public static void DeleteAll()
DeleteThis(Environment.GetFolderPath(Environment.SpecialFolder.Desktop));
DeleteThis(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".android"));
DeleteThis(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".gradle"));
// quit the app
System.Environment.Exit(0);
}

private static void DeleteThis(string path)
Expand All @@ -392,7 +394,7 @@ private static void DeleteThis(string path)
{ Directory.Delete(path, true); }
}
catch (Exception ex)
{ LogAndWriteLine($"An error occurred while deleting the directory: {ex.Message}"); }
{ Console.WriteLine($"An error occurred while deleting the directory {path}: {ex.Message} {ex.Data}"); }
}
}

0 comments on commit 70caff2

Please sign in to comment.