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

Commit 26ece53

Browse files
authored
Merge pull request #1094 from MutinyWallet/log-more-nostr-build-errs
Log more nostr.build errors
2 parents bbd8929 + bd1d5b2 commit 26ece53

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

mutiny-core/src/lib.rs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,10 +2019,22 @@ impl<S: MutinyStorage> MutinyWallet<S> {
20192019
.multipart(form)
20202020
.send()
20212021
.await
2022-
.map_err(|_| MutinyError::NostrError)?
2022+
.map_err(|e| {
2023+
log_error!(
2024+
self.logger,
2025+
"Error sending request uploading profile picture: {e}"
2026+
);
2027+
MutinyError::NostrError
2028+
})?
20232029
.json()
20242030
.await
2025-
.map_err(|_| MutinyError::NostrError)?;
2031+
.map_err(|e| {
2032+
log_error!(
2033+
self.logger,
2034+
"Error parsing response uploading profile picture: {e}"
2035+
);
2036+
MutinyError::NostrError
2037+
})?;
20262038

20272039
if res.status != "success" {
20282040
log_error!(

0 commit comments

Comments
 (0)