Skip to content

Commit ddb35f6

Browse files
committed
fix: better error handling in the FE with the cause of error
1 parent 5f67dbf commit ddb35f6

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)