diff --git a/dist/index.js b/dist/index.js index ac64344..6b1ea20 100644 --- a/dist/index.js +++ b/dist/index.js @@ -204,6 +204,12 @@ try { }); } catch (error) { + + if (error.code == 'ENOENT') { + console.log(`The '${error.path}' executable could not be found. Please make sure it is on your PATH and/or the necessary packages are installed.`); + console.log(`PATH is set to: ${process.env.PATH}`); + } + core.setFailed(error.message); } diff --git a/index.js b/index.js index cf7b562..199438a 100644 --- a/index.js +++ b/index.js @@ -87,5 +87,11 @@ try { }); } catch (error) { + + if (error.code == 'ENOENT') { + console.log(`The '${error.path}' executable could not be found. Please make sure it is on your PATH and/or the necessary packages are installed.`); + console.log(`PATH is set to: ${process.env.PATH}`); + } + core.setFailed(error.message); }