Add helpful error message for null steps

This commit is contained in:
Ethan Chiu
2020-06-23 12:23:02 -04:00
parent 8aadbbdb8e
commit f9b28c7210

View File

@@ -419,6 +419,7 @@ namespace GitHub.Runner.Worker
{ {
if (stepsLoaded == null) if (stepsLoaded == null)
{ {
// TODO: Add a more helpful error message + including file name, etc. to show user that it's because of their yaml file
throw new ArgumentNullException($"No steps provided."); throw new ArgumentNullException($"No steps provided.");
} }
else else