Skip to content

Commit

Permalink
Merge pull request #9 from it-a-me/main
Browse files Browse the repository at this point in the history
blsctl: Prevent printing backtrace when ran with insufficent permissions
  • Loading branch information
ikeycode authored Jun 8, 2024
2 parents 0f4ad5d + bf6edbf commit 331e811
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 331e811

Please sign in to comment.