Skip to content

Commit 0fa6f21

Browse files
committed
Have error class ctor call super()
1 parent e81cb01 commit 0fa6f21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/error.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
*/
1616
class USPSError extends Error {
1717
constructor(message, ...additions) {
18+
super(message);
19+
1820
// addition should be an {} obj (possibly an Error)
1921
for (let addition of additions) {
2022
for (let key in addition) {

0 commit comments

Comments
 (0)