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

fix(bin): do not print stack backtrace on error #189

Merged
merged 2 commits into from
Jul 31, 2023
Merged

fix(bin): do not print stack backtrace on error #189

merged 2 commits into from
Jul 31, 2023

Conversation

xxchan
Copy link
Member

@xxchan xxchan commented Jul 31, 2023

... because it's totally noise for users

@xxchan xxchan requested review from skyzh and wangrunji0408 July 31, 2023 13:19
xxchan added 2 commits July 31, 2023 15:20
... because it's totally noise for users

Signed-off-by: xxchan <xxchan22f@gmail.com>
Signed-off-by: xxchan <xxchan22f@gmail.com>
@xxchan xxchan enabled auto-merge (squash) July 31, 2023 13:21
@xxchan xxchan merged commit 42e8a22 into main Jul 31, 2023
@xxchan xxchan deleted the xxchan/a branch July 31, 2023 13:22
xxchan added a commit that referenced this pull request Aug 21, 2023
revert #189. Error context is printed only for `{:?}`.

For backtrace, according to anyhow's doc,

> If using the nightly channel, or stable with features = ["backtrace"], a backtrace is captured and printed with the error if the underlying error type does not already provide its own. In order to see backtraces, they must be enabled through the environment variables described in std::backtrace

So we can either: ship pre-built binary or unset `RUST_BACKTRACE` to hide backtrace.
xxchan added a commit that referenced this pull request Aug 21, 2023
revert #189. Error context is printed only for `{:?}`.

For backtrace, according to anyhow's doc,

> If using the nightly channel, or stable with features = ["backtrace"], a backtrace is captured and printed with the error if the underlying error type does not already provide its own. In order to see backtraces, they must be enabled through the environment variables described in std::backtrace

So we can either: ship pre-built binary or unset `RUST_BACKTRACE` to hide backtrace.

Signed-off-by: xxchan <xxchan22f@gmail.com>
TennyZhuang pushed a commit that referenced this pull request Aug 21, 2023
* fix error context display

revert #189. Error context is printed only for `{:?}`.

For backtrace, according to anyhow's doc,

> If using the nightly channel, or stable with features = ["backtrace"], a backtrace is captured and printed with the error if the underlying error type does not already provide its own. In order to see backtraces, they must be enabled through the environment variables described in std::backtrace

So we can either: ship pre-built binary or unset `RUST_BACKTRACE` to hide backtrace.

Signed-off-by: xxchan <xxchan22f@gmail.com>

* update release workflow

Signed-off-by: xxchan <xxchan22f@gmail.com>

* test release ci

Signed-off-by: xxchan <xxchan22f@gmail.com>

* add changelog

Signed-off-by: xxchan <xxchan22f@gmail.com>

* add more targets

Signed-off-by: xxchan <xxchan22f@gmail.com>

* more cargo-binstall friendly

Signed-off-by: xxchan <xxchan22f@gmail.com>

* remove test config

Signed-off-by: xxchan <xxchan22f@gmail.com>

---------

Signed-off-by: xxchan <xxchan22f@gmail.com>
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

Successfully merging this pull request may close these issues.

2 participants