diff --git a/src/Runner.Sdk/Util/WhichUtil.cs b/src/Runner.Sdk/Util/WhichUtil.cs index b4d94e513..598ad0980 100644 --- a/src/Runner.Sdk/Util/WhichUtil.cs +++ b/src/Runner.Sdk/Util/WhichUtil.cs @@ -115,11 +115,15 @@ namespace GitHub.Runner.Sdk } } - trace?.Info("Not found."); +#if OS_WINDOWS + trace?.Info($"{command}: command not found. Make sure '{command}' is installed and its location included in the 'Path' environment variable."); +#else + trace?.Info($"{command}: command not found. Make sure '{command}' is installed and its location included in the 'PATH' environment variable."); +#endif if (require) { throw new FileNotFoundException( - message: $"File not found: '{command}'", + message: $"{command}: command not found", fileName: command); }