fix: support unknown catch variable (#377)

This commit is contained in:
Matthew 2021-10-13 08:22:35 -04:00 committed by GitHub
parent a13220825b
commit 40c0b260f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ async function run(): Promise<void> {
core.setOutput('time', new Date().toTimeString())
} catch (error) {
core.setFailed(error.message)
if (err instanceof Error) core.setFailed(error.message)
}
}