Skip to content

Commit

Permalink
blsctl: Prevent printing backtrace when ran with insufficent permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
it-a-me committed May 24, 2024
1 parent 0f4ad5d commit bf6edbf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion blsctl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ fn query_schema(config: &Configuration) -> color_eyre::Result<RootSchema> {
}

fn inspect_root(config: &Configuration) -> color_eyre::Result<()> {
check_permissions()?;
if let Err(e) = check_permissions() {
log::error!("{:#}", e);
return Ok(());
}

let schema = query_schema(config)?;
log::info!("Root Schema: {schema:?}");

Expand Down

0 comments on commit bf6edbf

Please sign in to comment.