Skip to content

Commit

Permalink
Merge pull request #157 from dependabot/dependabot/npm_and_yarn/types…
Browse files Browse the repository at this point in the history
…cript-4.5.5

Bump typescript from 4.3.5 to 4.5.5
  • Loading branch information
brrygrdn authored Feb 21, 2022
2 parents 54c7e6c + 91c778d commit 6f13a25
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 12 deletions.
9 changes: 7 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"nock": "^13.2.4",
"ts-jest": "^26.5.6",
"ts-node": "^10.5.0",
"typescript": "^4.3.5",
"typescript": "^4.5.5",
"yaml": "^1.10.2",
"yargs": "^17.3.1"
}
Expand Down
6 changes: 5 additions & 1 deletion src/dry-run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ async function check (args: any): Promise<void> {
process.exit(1)
}
} catch (exception) {
console.log(exception.message)
if (exception instanceof Error) {
console.log(exception.message)
} else {
console.log('There was an unexpected error.')
}
process.exit(1)
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ export async function run (): Promise<void> {
core.setFailed(`Api Error: (${error.status}) ${error.message}`)
return
}
core.setFailed(error.message)
if (error instanceof Error) {
core.setFailed(error.message)
} else {
core.setFailed('There was an unexpected error.')
}
}
}

Expand Down

0 comments on commit 6f13a25

Please sign in to comment.