Forcibly disable backtraces
This commit is contained in:
parent
14b150c1f7
commit
05299e0b80
|
|
@ -13,9 +13,13 @@ use crate::error::SilentExit;
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use clap::Clap;
|
use clap::Clap;
|
||||||
|
|
||||||
|
use std::env;
|
||||||
use std::process;
|
use std::process;
|
||||||
|
|
||||||
pub fn main() -> Result<()> {
|
pub fn main() -> Result<()> {
|
||||||
|
env::remove_var("RUST_LIB_BACKTRACE");
|
||||||
|
env::remove_var("RUST_BACKTRACE");
|
||||||
|
|
||||||
App::parse()
|
App::parse()
|
||||||
.run()
|
.run()
|
||||||
.map_err(|e| match e.downcast::<SilentExit>() {
|
.map_err(|e| match e.downcast::<SilentExit>() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue