Skip to content

Commit

Permalink
Handle 5.x error messages in account checker
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed Jan 20, 2024
1 parent a1524dc commit 7807822
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/commands/account/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ async function checkAccountNameExists(accountName: NameType, chainUrl: string):
} catch (error: unknown) {
const errorMessage = (error as {message: string}).message

if (errorMessage.includes('Account not found')) {
if (
errorMessage.includes('Account not found') ||
errorMessage.includes('Account Query Exception')
) {
return false
}

Expand Down

0 comments on commit 7807822

Please sign in to comment.