Skip to content

Commit 4c267f4

Browse files
committed
It is more intuitive (and informative, given the parameter name) that null (or empty) arguments throw ArgumentNullException.
1 parent 6276276 commit 4c267f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitVersionCore/Helpers/ProcessHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static Process Start(ProcessStartInfo startInfo)
3232
public static int Run(Action<string> output, Action<string> errorOutput, TextReader input, string exe, string args, string workingDirectory, params KeyValuePair<string, string>[] environmentalVariables)
3333
{
3434
if (String.IsNullOrEmpty(exe))
35-
throw new FileNotFoundException();
35+
throw new ArgumentNullException("exe");
3636
if (output == null)
3737
throw new ArgumentNullException("output");
3838

0 commit comments

Comments
 (0)