Skip to content

fix(index): use core.setFailed() to preserve original error message#17

Merged
luojiyin1987 merged 1 commit into
mainfrom
fix/error-handling
Jun 16, 2026
Merged

fix(index): use core.setFailed() to preserve original error message#17
luojiyin1987 merged 1 commit into
mainfrom
fix/error-handling

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

改动

index.ts 中的错误处理从 console.log() + throw new Error('unknown error!') 改为 core.setFailed(err.message)

之前:原始错误信息丢失,只显示 "unknown error!"
现在:保留原始错误信息,正确标记 Action 失败

@luojiyin1987 luojiyin1987 merged commit 40c61b5 into main Jun 16, 2026
3 checks passed
@luojiyin1987 luojiyin1987 deleted the fix/error-handling branch June 16, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant