Skip to content

Commit 312f51a

Browse files
committed
remove duplicate eprintln, don't capture top-level binary errors
1 parent 83aa08e commit 312f51a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/bin/cratesfyi.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use docs_rs::{
1111
BuildQueue, Config, Context, Index, Metrics, PackageKind, RustwideBuilder, Server, Storage,
1212
};
1313
use once_cell::sync::OnceCell;
14-
use sentry_anyhow::capture_anyhow;
1514
use sentry_log::SentryLogger;
1615
use structopt::StructOpt;
1716
use strum::VariantNames;
@@ -47,10 +46,6 @@ pub fn main() {
4746
eprintln!("\nStack backtrace:\n{}", backtrace);
4847
}
4948

50-
capture_anyhow(&err);
51-
52-
eprintln!("{}", msg);
53-
5449
// we need to drop the sentry guard here so all unsent
5550
// errors are sent to sentry
5651
drop(_sentry_guard);

0 commit comments

Comments
 (0)