Skip to content

Commit

Permalink
chore: Display proper error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Halibao-Lala committed Dec 30, 2024
1 parent 68de75d commit 0854dd5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/canonical-bridge-server/src/shared/web3/web3.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class Web3Service {
);
return data;
} catch (e) {
console.error(`Failed to retrieve cBridge data at ${new Date().getTime()}`, e);
console.error(`Failed to retrieve cBridge data at ${new Date().getTime()}`, e.message);
return {};
}
}
Expand All @@ -79,7 +79,7 @@ export class Web3Service {

return data;
} catch (e) {
console.error(`Failed to retrieve DeBridge chain data at ${new Date().getTime()}`, e);
console.error(`Failed to retrieve DeBridge chain data at ${new Date().getTime()}`, e.message);
return { chains: [] };
}
}
Expand All @@ -94,7 +94,7 @@ export class Web3Service {
} catch (e) {
console.error(
`Failed to retrieve DeBridge token data from ${chainId} at ${new Date().getTime()}`,
e,
e.message,
);
return { tokens: {} };
}
Expand All @@ -117,7 +117,7 @@ export class Web3Service {
});
return processedTokenList;
} catch (e) {
console.log(`Failed to retrieve Stargate API data at ${new Date().getTime()}`, e);
console.error(`Failed to retrieve Stargate API data at ${new Date().getTime()}`, e.message);
return [];
}
}
Expand Down

0 comments on commit 0854dd5

Please sign in to comment.