diff options
author | HampusM <hampus@hampusmat.com> | 2021-07-27 16:49:53 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-07-27 16:49:53 +0200 |
commit | fa44d81b658024685e0496150d66a51f2f5fda8c (patch) | |
tree | 38ed498ee8d070245432fec7c8ca2483254a3893 /packages/server/src/git/error.ts | |
parent | f6a5fe05c887a658c20257d2ef6bf2780f792873 (diff) |
Improved a bunch of small things in the backend
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; /** |