mirror of
https://github.com/actions/typescript-action.git
synced 2026-03-28 13:53:13 +08:00
fix: support unknown catch variable (#377)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user