Skip to content

Commit 6f13a25

Browse files
authored
Merge pull request #157 from dependabot/dependabot/npm_and_yarn/typescript-4.5.5
Bump typescript from 4.3.5 to 4.5.5
2 parents 54c7e6c + 91c778d commit 6f13a25

File tree

5 files changed

+25
-12
lines changed

5 files changed

+25
-12
lines changed

dist/index.js

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"nock": "^13.2.4",
4040
"ts-jest": "^26.5.6",
4141
"ts-node": "^10.5.0",
42-
"typescript": "^4.3.5",
42+
"typescript": "^4.5.5",
4343
"yaml": "^1.10.2",
4444
"yargs": "^17.3.1"
4545
}

src/dry-run.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ async function check (args: any): Promise<void> {
6565
process.exit(1)
6666
}
6767
} catch (exception) {
68-
console.log(exception.message)
68+
if (exception instanceof Error) {
69+
console.log(exception.message)
70+
} else {
71+
console.log('There was an unexpected error.')
72+
}
6973
process.exit(1)
7074
}
7175
}

src/main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ export async function run (): Promise<void> {
4444
core.setFailed(`Api Error: (${error.status}) ${error.message}`)
4545
return
4646
}
47-
core.setFailed(error.message)
47+
if (error instanceof Error) {
48+
core.setFailed(error.message)
49+
} else {
50+
core.setFailed('There was an unexpected error.')
51+
}
4852
}
4953
}
5054

0 commit comments

Comments
 (0)