diff options
| author | Frank <[email protected]> | 2025-09-12 14:22:40 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-09-12 14:22:42 -0400 |
| commit | c6c153de95668b6e3a3e08e122cad06b8e0f40e6 (patch) | |
| tree | 17235e011ede1804b8ad554ddcf9b29b6b9e82a5 /cloud/core/src | |
| parent | 417e8f619cea713e307c1efbf0b56964834b3731 (diff) | |
| download | opencode-c6c153de95668b6e3a3e08e122cad06b8e0f40e6.tar.gz opencode-c6c153de95668b6e3a3e08e122cad06b8e0f40e6.zip | |
wip: zen
Diffstat (limited to 'cloud/core/src')
| -rw-r--r-- | cloud/core/src/key.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cloud/core/src/key.ts b/cloud/core/src/key.ts index a8bcec401..28643a521 100644 --- a/cloud/core/src/key.ts +++ b/cloud/core/src/key.ts @@ -41,7 +41,11 @@ export namespace Key { key: secretKey, timeUsed: null, }), - ) + ).catch((e: any) => { + if (e.message.match(/Duplicate entry '.*' for key 'key.name'/)) + throw new Error("A key with this name already exists. Please choose a different name.") + throw e + }) return keyID }) |
