fix default case in error handling

This commit is contained in:
Eli Reisman
2022-05-23 11:36:34 -07:00
parent 0be808458e
commit 19edfd7243
+1 -1
View File
@@ -60,7 +60,7 @@ async function run(): Promise<void> {
core.setFailed(
`Dependency review is not supported on this repository. Please ensure that Dependency graph is enabled, see https://github.com/${github.context.repo.owner}/${github.context.repo.repo}/settings/security_analysis`
)
} else if (error instanceof Error) {
} else (error instanceof Error) {
core.setFailed(error.message)
}
}