mirror of
https://github.com/actions/runner.git
synced 2025-12-15 06:26:46 +00:00
Add helpful error message for null steps
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user