Skip to content

Commit

Permalink
fix(cli): avoid expected error backtrace (#960)
Browse files Browse the repository at this point in the history
<!--
Pull requests are squashed and merged using:
- their title as the commit message
- their description as the commit body

Having a good title and description is important for the users to get
readable changelog.
-->

<!-- 1. Explain WHAT the change is about -->

- Closes
[MET-801](https://linear.app/metatypedev/issue/MET-801/avoid-backtraces-on-expected-errors).

<!-- 3. Explain HOW users should update their code -->

#### Migration notes

---

- [ ] The change comes with new or modified tests
- [ ] Hard-to-understand functions have explanatory comments
- [ ] End-user documentation is updated to reflect the change


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Chores**
- Updated error reporting configuration to reduce verbosity during panic
events.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
luckasRanarison authored Jan 31, 2025
1 parent 7a94f4c commit ab60cd1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions src/meta-cli/src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Args: {args:?}
.map(|var| var != "0")
.unwrap_or(true),
)
.display_env_section(false)
.try_into_hooks()
.unwrap();
let eyre_panic_hook = eyre_panic_hook.into_panic_hook();
Expand Down
3 changes: 0 additions & 3 deletions tests/e2e/typegraph/__snapshots__/validator_test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,5 @@ snapshot[`typegraph validation 1`] = `
ERROR meta::deploy::actors::console: - Typegraph validator failed validation
Error:
0: failed
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
\`
`;

0 comments on commit ab60cd1

Please sign in to comment.