aboutsummaryrefslogtreecommitdiff
path: root/src/errors.ts
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@protonmail.com>2019-12-11 14:31:56 -0500
committerKevin J Hoerr <kjhoerr@protonmail.com>2019-12-11 14:31:56 -0500
commit0d810aa92e9b54493a2e075c3bb497b3857a2119 (patch)
tree2077c2f3f30d1253a1f4565526aaa60f28576db7 /src/errors.ts
parentefd9095988fe9b76096342e84c6f3f1bc5d67120 (diff)
downloadao-coverage-0d810aa92e9b54493a2e075c3bb497b3857a2119.tar.gz
ao-coverage-0d810aa92e9b54493a2e075c3bb497b3857a2119.tar.bz2
ao-coverage-0d810aa92e9b54493a2e075c3bb497b3857a2119.zip
Add ts-jest to improve TS coverage reports
Diffstat (limited to 'src/errors.ts')
-rw-r--r--src/errors.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/errors.ts b/src/errors.ts
index 3af634d..6e8c32f 100644
--- a/src/errors.ts
+++ b/src/errors.ts
@@ -1,6 +1,7 @@
export class BranchNotFoundError extends Error {
constructor() {
super();
+ this.name = "BranchNotFoundError";
this.message = "Branch not found";
}
}
@@ -8,6 +9,7 @@ export class BranchNotFoundError extends Error {
export class InvalidReportDocumentError extends Error {
constructor() {
super();
+ this.name = "InvalidReportDocumentError";
this.message = "Invalid report document";
}
}