File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class CoreError extends Boom {
16
16
constructor ( message , options ) {
17
17
options = Object . assign ( { } , options ) ;
18
18
19
- const { ctr = CoreError , isInternal = false } = options ;
19
+ const { ctr = CoreError , isInternal = false , isCache = false } = options ;
20
20
if ( message && ! message . isBoom && message instanceof Error ) {
21
21
message . name = `${ CoreError . name } - ${ message . name } ` ;
22
22
}
@@ -34,6 +34,7 @@ class CoreError extends Boom {
34
34
this . status = this . output . statusCode ;
35
35
this . typeof = ctr ;
36
36
this . isInternal = isInternal ;
37
+ this . isCache = isCache ;
37
38
38
39
return this ;
39
40
}
@@ -61,7 +62,8 @@ class CoreError extends Boom {
61
62
62
63
static CachedNotFound ( ) {
63
64
return this . notFound ( this . CachedNotFound . name , {
64
- ctr : this . CachedNotFound
65
+ ctr : this . CachedNotFound ,
66
+ isCache : true
65
67
} ) ;
66
68
}
67
69
You can’t perform that action at this time.
0 commit comments