Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #175 from nervosnetwork/cache-err-msg
Browse files Browse the repository at this point in the history
fix(cache): rm un-needed json.stringify for error.message
  • Loading branch information
RetricSu authored Feb 16, 2022
2 parents 651780a + 00e9b1f commit b2a3123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api-server/src/cache/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class RedisDataCache {
await releaseLock(lockValue);
return result;
} catch (error: any) {
const reason = JSON.stringify(error.message);
const reason = error.message;
if (!reason.includes("request to")) {
// publish the non-network-connecting-error-result to channel
const publishResult = errorResult(reason);
Expand Down

0 comments on commit b2a3123

Please sign in to comment.