Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

Commit d521b34

Browse files
committed
fix: поправил коллизию названий исключений
1 parent 1ff1525 commit d521b34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cement.Cli.Common/ShellRunner.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public ShellRunnerResult RunOnce(string commandWithArguments, string workingDire
8686
process.Kill();
8787
hasTimeout = true;
8888

89-
throw new Exceptions.TimeoutException($"Running timeout at {timeout} for command {commandWithArguments} in {workingDirectory}");
89+
throw new TimeoutException($"Running timeout at {timeout} for command {commandWithArguments} in {workingDirectory}");
9090
}
9191

9292
LastOutput = output;
@@ -102,7 +102,7 @@ public ShellRunnerResult RunOnce(string commandWithArguments, string workingDire
102102
}
103103
catch (CementException e)
104104
{
105-
if (e is System.TimeoutException)
105+
if (e is TimeoutException)
106106
{
107107
if (!commandWithArguments.Equals("git ls-remote --heads"))
108108
ConsoleWriter.Shared.WriteWarning(e.Message);

0 commit comments

Comments
 (0)