Skip to content

Handle shadowlisp panics betterΒ #121

@burke

Description

@burke

There are lots of ways to generate a ketos->rust panic, and this shows in the terminal like:

~/s/g/S/shadowenv π’Žβ–‘% cd ~[//areas/core/shopify]
thread 'main' panicked at src/lang.rs:75:69:
called `Result::unwrap()` on an `Err` value: TypeError { expected: "string", found: "unit", value: Some(Unit) }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
//a/c/shopify π’Ž β‰Ÿβ–‘%

We should catch these and thoughtfully print them as 1-2 lines shadowenv errors instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions