Skip to content

Commit

Permalink
Add log for bootstrap org
Browse files Browse the repository at this point in the history
Closes #8505
  • Loading branch information
FirelightFlagboy committed Oct 2, 2024
1 parent 0b66d76 commit 8bfd773
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions libparsec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ libparsec_testbed = { workspace = true, optional = true }
libparsec_tests_fixtures = { workspace = true, optional = true }

dirs = { workspace = true }
log = { workspace = true }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
libparsec_platform_mountpoint = { workspace = true }
Expand Down
4 changes: 3 additions & 1 deletion libparsec/src/invite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ pub async fn bootstrap_organization(
device_label,
sequester_authority_verify_key,
)
.await?;
.await
.inspect_err(|e| log::error!("Failed to bootstrap organization: {e}"))?;

let access = {
let key_file = libparsec_platform_device_loader::get_default_key_file(
Expand All @@ -141,6 +142,7 @@ pub async fn bootstrap_organization(
let available_device = finalize_ctx
.save_local_device(&access)
.await
.inspect_err(|e| log::error!("Error while saving device: {e}"))
.map_err(BootstrapOrganizationError::SaveDeviceError)?;

Ok(available_device)
Expand Down

0 comments on commit 8bfd773

Please sign in to comment.