diff options
Diffstat (limited to 'packages/server/src/git/error.ts')
-rw-r--r-- | packages/server/src/git/error.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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<T> = new (code: number, message: string) => T; /** |