-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3232 from dusk-network/feature-3226
web-wallet: Fix wrong error shown in the login screen
- Loading branch information
Showing
7 changed files
with
57 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
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