aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/git/error
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-08-15 13:41:37 +0200
committerHampusM <hampus@hampusmat.com>2021-08-15 13:41:37 +0200
commitc32094d0b1fc3aa5160087d71bff36ed1779bc3a (patch)
tree880b04bc207926a378fc7d5b30ee0fd421972fec /packages/server/src/git/error
parentddcf71225226bc0929d5c6d609b13ff0489e5b94 (diff)
Rewrote the commit author fingerprint function & implemented commit signature verification
Diffstat (limited to 'packages/server/src/git/error')
-rw-r--r--packages/server/src/git/error/types.ts6
1 files changed, 6 insertions, 0 deletions
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