Skip to content

Commit ba4cb92

Browse files
iQQBotgtsiolis
andauthored
Update components/gitpod-db/src/typeorm/user-db-impl.ts
Co-authored-by: George Tsiolis <[email protected]>
1 parent 725c071 commit ba4cb92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/gitpod-db/src/typeorm/user-db-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ export class TypeORMUserDBImpl implements UserDB {
418418
const allKeys = await repo.find({ where: { userId, deleted: false } });
419419
const prevOne = allKeys.find((e) => e.fingerprint === fingerprint);
420420
if (!!prevOne) {
421-
throw new Error(`Duplicate public key with ${prevOne.name}`);
421+
throw new Error(`Key already in use);
422422
}
423423
if (allKeys.length > SSHPublicKeyValue.MAXIMUM_KEY_LENGTH) {
424424
throw new Error(`The maximum of public keys is ${SSHPublicKeyValue.MAXIMUM_KEY_LENGTH}`);

0 commit comments

Comments
 (0)