From d2723c1412d8aea94ca2909ee06039ebca982f65 Mon Sep 17 00:00:00 2001 From: Adam Ralph Date: Tue, 13 Aug 2019 23:33:55 +0200 Subject: [PATCH] wip --- MinVer.Lib/Command.cs | 2 +- MinVer.Lib/NonZeroExitCodeException.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MinVer.Lib/Command.cs b/MinVer.Lib/Command.cs index 8637024a..e180f769 100644 --- a/MinVer.Lib/Command.cs +++ b/MinVer.Lib/Command.cs @@ -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; diff --git a/MinVer.Lib/NonZeroExitCodeException.cs b/MinVer.Lib/NonZeroExitCodeException.cs index 1e71e9ae..19957535 100644 --- a/MinVer.Lib/NonZeroExitCodeException.cs +++ b/MinVer.Lib/NonZeroExitCodeException.cs @@ -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() + { + } } }