Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 5726fba

Browse files
authored
Merge pull request #157 from github-for-unity/fixes/exception-thrown
Fixes to throws of Exception
2 parents 56c234d + 95303ca commit 5726fba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/GitHub.Api/Events/RepositoryWatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void Start()
7878
if (nativeInterface == null)
7979
{
8080
Logger.Warning("NativeInterface is null");
81-
throw new Exception("Not initialized");
81+
throw new InvalidOperationException("NativeInterface is null");
8282
}
8383

8484
running = true;

src/GitHub.Api/OutputProcessors/StatusOutputProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public override void LineReceived(string line)
6666
}
6767
else
6868
{
69-
throw new Exception("Unexpected deltaComponent in o");
69+
throw new InvalidOperationException("Unexpected deltaComponent in o");
7070
}
7171
}
7272
}

0 commit comments

Comments
 (0)