dalekjs/dalek — pull request #41 by kristerkari (2013-12-29 19:35:01+00:00)
Title: Let user know why loading a suite failed

Currently DalekJS does not give any info *why* loading a test suite failed. If the test suite JS has for example a syntax error that the user has not spotted, it might be difficult for the user to understand why the suite does not load.

This PR prints error name and message before the warning. I'm not that familiar with Dalek internals, so let me know if there is some better way of logging the error.

before:
```
>> Warning: Failure loading suite "x_spec.js". Skipping!
Fatal error: connect ECONNREFUSED
```

after:
```
>> Warning:
SyntaxError: Duplicate data property in object literal not allowed in strict mode
Failure loading suite "x_spec.js". Skipping!
Fatal error: connect ECONNREFUSED
```
ping @asciidisco