Skip to content

Commit ab60cd1

Browse files
fix(cli): avoid expected error backtrace (#960)
<!-- 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 -->
1 parent 7a94f4c commit ab60cd1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/meta-cli/src/logger.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Args: {args:?}
3030
.map(|var| var != "0")
3131
.unwrap_or(true),
3232
)
33+
.display_env_section(false)
3334
.try_into_hooks()
3435
.unwrap();
3536
let eyre_panic_hook = eyre_panic_hook.into_panic_hook();

tests/e2e/typegraph/__snapshots__/validator_test.ts.snap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,5 @@ snapshot[`typegraph validation 1`] = `
3232
ERROR meta::deploy::actors::console: - Typegraph validator failed validation
3333
Error:
3434
0: failed
35-
36-
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
37-
Run with RUST_BACKTRACE=full to include source snippets.
3835
\`
3936
`;

0 commit comments

Comments
 (0)