Skip to content

Commit

Permalink
Add comment, format
Browse files Browse the repository at this point in the history
  • Loading branch information
nebrelbug committed Aug 30, 2020
1 parent 9924db9 commit f532bcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/err.ts
Expand Up @@ -7,6 +7,9 @@ function setPrototypeOf (obj: any, proto: any) {
}
}

// This is pretty much the only way to get nice, extended Errors
// without using ES6

export default function EtaErr (message: string): Error {
var err = new Error(message)
setPrototypeOf(err, EtaErr.prototype)
Expand Down

0 comments on commit f532bcf

Please sign in to comment.