Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
adamralph committed Aug 13, 2019
1 parent 61e497a commit d2723c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MinVer.Lib/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static string Read(string name, string args, string workingDirectory)

if (process.ExitCode != 0)
{
throw new NonZeroExitCodeException(process.ExitCode);
throw new NonZeroExitCodeException();
}

return readOutput.Result;
Expand Down
6 changes: 3 additions & 3 deletions MinVer.Lib/NonZeroExitCodeException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ internal class NonZeroExitCodeException : Exception
#pragma warning restore CA1064 // Exceptions should be public
#pragma warning restore CA1032 // Implement standard exception constructors
{
public NonZeroExitCodeException(int exitCode) : base($"The process exited with code {exitCode}.") => this.ExitCode = exitCode;

public int ExitCode { get; }
public NonZeroExitCodeException() : base()
{
}
}
}

0 comments on commit d2723c1

Please sign in to comment.