Skip to content

Commit

Permalink
remove else on interpret error (#2667)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo authored Sep 19, 2024
1 parent 363c6d6 commit 52299c7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions wormhole-connect/src/utils/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ export function interpretTransferError(
uiErrorMessage = SWAP_ERROR;
internalErrorCode = ERR_SWAP_FAILED;
*/
} else {
/**
* if we can not interpret the error message, we show the error message if it present to
* attempt to reduce user anxiety and if the error comes from route#validate we want to
* show the error message as well.
*/
uiErrorMessage = e.message;
internalErrorCode = e.name || ERR_UNKNOWN;
}
}

Expand Down

0 comments on commit 52299c7

Please sign in to comment.