Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

Commit

Permalink
Merge pull request #1094 from MutinyWallet/log-more-nostr-build-errs
Browse files Browse the repository at this point in the history
Log more nostr.build errors
  • Loading branch information
benthecarman authored Mar 27, 2024
2 parents bbd8929 + bd1d5b2 commit 26ece53
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions mutiny-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2019,10 +2019,22 @@ impl<S: MutinyStorage> MutinyWallet<S> {
.multipart(form)
.send()
.await
.map_err(|_| MutinyError::NostrError)?
.map_err(|e| {
log_error!(
self.logger,
"Error sending request uploading profile picture: {e}"
);
MutinyError::NostrError
})?
.json()
.await
.map_err(|_| MutinyError::NostrError)?;
.map_err(|e| {
log_error!(
self.logger,
"Error parsing response uploading profile picture: {e}"
);
MutinyError::NostrError
})?;

if res.status != "success" {
log_error!(
Expand Down

0 comments on commit 26ece53

Please sign in to comment.