Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash keyword causes exit with code 0 #6688

Open
Anton-4 opened this issue Apr 27, 2024 · 0 comments
Open

crash keyword causes exit with code 0 #6688

Anton-4 opened this issue Apr 27, 2024 · 0 comments

Comments

@Anton-4
Copy link
Contributor

Anton-4 commented Apr 27, 2024

The exit code should be 1.

Example:

❯ roc examples/helloWorld.roc
The program crashed with:

        CRASH

Here is the call stack that led to the crash:


Optimizations can make this list inaccurate! If it looks wrong, try running without `--optimize` and with `--linker=legacy`
❯ echo $?
0
❯ cat examples/helloWorld.roc 
app "helloWorld"
    packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.9.1/y_Ww7a2_ZGjp0ZTt9Y_pNdSqqMRdMLzHMKfdN8LWidk.tar.br" }
    imports [pf.Stdout]
    provides [main] to pf

main =
    crash "CRASH"
@Anton-4 Anton-4 added the good first issue Good for newcomers label Apr 27, 2024
@Anton-4 Anton-4 removed the good first issue Good for newcomers label May 13, 2024
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

No branches or pull requests

1 participant