-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
web-wallet: Fix wrong error shown in the login screen
Resolves #3226
- Loading branch information
1 parent
22e3b01
commit 8490394
Showing
6 changed files
with
53 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { default as InvalidMnemonicError } from "./invalid-mnemonic-error"; | ||
export { default as InvalidPasswordError } from "./invalid-password-error"; | ||
export { default as MismatchedWalletError } from "./mismatched-wallet-error"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class InvalidMnemonicError extends Error { | ||
constructor() { | ||
super("Invalid mnemonic"); | ||
this.name = "InvalidMnemonicError"; | ||
} | ||
} | ||
|
||
export default InvalidMnemonicError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class InvalidPasswordError extends Error { | ||
constructor() { | ||
super("Wrong password"); | ||
this.name = "InvalidPasswordError"; | ||
} | ||
} | ||
|
||
export default InvalidPasswordError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class MismatchedWalletError extends Error { | ||
constructor() { | ||
super("Mismatched wallet address or no existing wallet"); | ||
this.name = "MismatchedWalletError"; | ||
} | ||
} | ||
|
||
export default MismatchedWalletError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters