From fa44d81b658024685e0496150d66a51f2f5fda8c Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 27 Jul 2021 16:49:53 +0200 Subject: Improved a bunch of small things in the backend --- packages/server/src/git/error.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'packages/server/src/git/error.ts') diff --git a/packages/server/src/git/error.ts b/packages/server/src/git/error.ts index fff16a4..6715d8f 100644 --- a/packages/server/src/git/error.ts +++ b/packages/server/src/git/error.ts @@ -48,6 +48,12 @@ export class MiscError extends BaseError { } } +export class DiffError extends BaseError { + constructor(code: number, message: string) { + super(code, "A diff error has occured: " + message); + } +} + type ErrorConstructorType = new (code: number, message: string) => T; /** -- cgit v1.2.3-18-g5258