diff --git a/dist/index.js b/dist/index.js index b1a1aff5..b131b7fd 100644 --- a/dist/index.js +++ b/dist/index.js @@ -60,7 +60,12 @@ function run() { } catch (error) { core.debug(util_1.inspect(error)); - core.setFailed(error.message); + if (error.status == 404) { + core.setFailed('Repository not found, OR token has insufficient permissions.'); + } + else { + core.setFailed(error.message); + } } }); } diff --git a/src/main.ts b/src/main.ts index 2758e3fc..6641def9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -24,7 +24,13 @@ async function run(): Promise { }) } catch (error) { core.debug(inspect(error)) - core.setFailed(error.message) + if (error.status == 404) { + core.setFailed( + 'Repository not found, OR token has insufficient permissions.' + ) + } else { + core.setFailed(error.message) + } } }