Skip to content

Commit 7f6e0cd

Browse files
authored
Merge pull request #442 from NexusMutual/fix/ipfs-upload-error-cause
fix: better error handling in the FE with the cause of error
2 parents 5f67dbf + ddb35f6 commit 7f6e0cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ipfs/Ipfs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class Ipfs extends NexusSDKBase {
6060
return response.ipfsHash;
6161
} catch (error) {
6262
console.error('Error:', error);
63-
throw new Error('Failed to upload data to IPFS');
63+
throw new Error('Failed to upload data to IPFS', { cause: error });
6464
}
6565
}
6666

0 commit comments

Comments
 (0)