We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 725c071 commit ba4cb92Copy full SHA for ba4cb92
components/gitpod-db/src/typeorm/user-db-impl.ts
@@ -418,7 +418,7 @@ export class TypeORMUserDBImpl implements UserDB {
418
const allKeys = await repo.find({ where: { userId, deleted: false } });
419
const prevOne = allKeys.find((e) => e.fingerprint === fingerprint);
420
if (!!prevOne) {
421
- throw new Error(`Duplicate public key with ${prevOne.name}`);
+ throw new Error(`Key already in use);
422
}
423
if (allKeys.length > SSHPublicKeyValue.MAXIMUM_KEY_LENGTH) {
424
throw new Error(`The maximum of public keys is ${SSHPublicKeyValue.MAXIMUM_KEY_LENGTH}`);
0 commit comments