]> git.codecow.com Git - libnemo.git/commitdiff
Formatting.
authorChris Duncan <chris@zoso.dev>
Tue, 2 Sep 2025 20:41:57 +0000 (13:41 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 2 Sep 2025 20:41:57 +0000 (13:41 -0700)
src/lib/wallet/create.ts

index 34258e94beb9cf5c565b9392b1572d08e1b7472a..2aec6fe944842176b1264f0c1050609d2c26f1d9 100644 (file)
@@ -27,7 +27,7 @@ export async function _create (wallet: Wallet, vault: Vault, password: unknown,
                        }
                } else {
                        if (typeof password !== 'string') {
-                               throw new TypeError('Invalid password', { cause: typeof password })
+                               throw new TypeError('Password must be a string')
                        }
                        if (mnemonicSalt !== undefined && typeof mnemonicSalt !== 'string') {
                                throw new TypeError('Mnemonic salt must be a string')