Shopify / shadowenv

reversible directory-local environment variable manipulations
https://shopify.github.io/shadowenv/
MIT License
396 stars 18 forks source link

Handle shadowlisp panics better #121

Open burke opened 2 weeks ago

burke commented 2 weeks ago

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.