hannesgassert/mojo — comment on commit c804864efa37f4f4dab0e2046045c1d1a159c002
File: src/mojo.coffee line 39
By hannesgassert:

You're right, it's an `Error` already. But somehow I acquired a `new Error()` habit because I get more helpful call stacks thrown with the error then .. in this case here:

```
Error: ECONNREFUSED, Connection refused
at Socket._onConnect (net.js:595:18)
at IOWatcher.onWritable [as callback] (net.js:186:12)
```

vs.

```
Error: ECONNREFUSED, Connection refused
at Connection. (/some/path/mojo/lib/mojo.js:25:17)
..
```

Your library, you decide! :)