We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48f8f8c commit 11c8e73Copy full SHA for 11c8e73
Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor/Git.cs
@@ -1,10 +1,10 @@
1
// Copyright (c) Scott Doxey. All Rights Reserved. Licensed under the MIT License. See LICENSE in the project root for license information.
2
3
#if UNITY_EDITOR
4
+using System;
5
using System.Collections.Generic;
6
using System.Diagnostics;
7
using System.Threading.Tasks;
-using Debug = UnityEngine.Debug;
8
9
namespace CandyCoded.GitStatus
10
{
@@ -93,7 +93,7 @@ public static async Task DiscardChanges(string path)
93
if (process?.StandardError.ReadLine() is string line && line.StartsWith("error: pathspec"))
94
95
96
- Debug.LogError("File not tracked by git.");
+ throw new Exception("File not tracked by git.");
97
98
}
99
0 commit comments