Skip to content

feat(consts/exit-codes): add exit codes enum - #675

Merged
B4nan merged 1 commit into
masterfrom
exit-codes-const
Jul 30, 2026
Merged

feat(consts/exit-codes): add exit codes enum#675
B4nan merged 1 commit into
masterfrom
exit-codes-const

Conversation

@JuanGalilea

Copy link
Copy Markdown
Contributor

why? thread about a convention for failing actors due to an invalid input

After a talk with @B4nan we came to a conclusion that an enum here would be good enough for some ergonomics around this, so it can be used as:

await Actor.exit("your input sucks", { exitCode: ACTOR_EXIT_CODE.INVALID_INPUT });

@JuanGalilea
JuanGalilea requested a review from B4nan July 29, 2026 12:23
@JuanGalilea JuanGalilea self-assigned this Jul 29, 2026
@B4nan
B4nan merged commit c127980 into master Jul 30, 2026
9 checks passed
@B4nan
B4nan deleted the exit-codes-const branch July 30, 2026 07:59
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.

3 participants