Skip to content

Commit 11c8e73

Browse files
committed
Throw error rather than logging.
1 parent 48f8f8c commit 11c8e73

File tree

1 file changed

+2
-2
lines changed
  • Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor

1 file changed

+2
-2
lines changed

Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor/Git.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright (c) Scott Doxey. All Rights Reserved. Licensed under the MIT License. See LICENSE in the project root for license information.
22

33
#if UNITY_EDITOR
4+
using System;
45
using System.Collections.Generic;
56
using System.Diagnostics;
67
using System.Threading.Tasks;
7-
using Debug = UnityEngine.Debug;
88

99
namespace CandyCoded.GitStatus
1010
{
@@ -93,7 +93,7 @@ public static async Task DiscardChanges(string path)
9393
if (process?.StandardError.ReadLine() is string line && line.StartsWith("error: pathspec"))
9494
{
9595

96-
Debug.LogError("File not tracked by git.");
96+
throw new Exception("File not tracked by git.");
9797

9898
}
9999

0 commit comments

Comments
 (0)