| 70 | |
| 71 | function makeOuterError (originalError) { |
| 72 | class MyCustomError extends Error { |
| 73 | constructor (message) { |
| 74 | super(message); |
| 75 | this.stack = undefined; |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | let myCustomOno = new Ono(MyCustomError); |
| 80 | return myCustomOno(originalError, "Oops, an error happened."); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…