From c32094d0b1fc3aa5160087d71bff36ed1779bc3a Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 15 Aug 2021 13:41:37 +0200 Subject: Rewrote the commit author fingerprint function & implemented commit signature verification --- packages/server/src/git/error/types.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'packages/server/src/git/error') diff --git a/packages/server/src/git/error/types.ts b/packages/server/src/git/error/types.ts index b8f2de7..b8c860b 100644 --- a/packages/server/src/git/error/types.ts +++ b/packages/server/src/git/error/types.ts @@ -36,4 +36,10 @@ export class CommitNotSignedError extends ErrorType { constructor() { super(500, "Commit isn't signed!"); } +} + +export class NotInKeyringError extends ErrorType { + constructor(email: string) { + super(500, `A public key for '${email}' doesn't exist in the server pgp keyring!`); + } } \ No newline at end of file -- cgit v1.2.3-18-g5258