Skip to content
This repository was archived by the owner on Oct 21, 2021. It is now read-only.

Commit 85dcd07

Browse files
author
Joshua Peek
authored
Ensure error name is set to subclass
1 parent f40c751 commit 85dcd07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class QueryError extends Error {
77

88
constructor(message) {
99
super(message)
10+
this.name = 'QueryError'
1011
this.framesToPop = 1
1112
}
1213
}

0 commit comments

Comments
 (0)