logging bundle errors client side and server side

In my case that logs something along the lines of:

```
server listening: http://localhost:3000
[Error: Cannot find module 'jquery']
[Error: Cannot find module 'core']
```
which definitely helps to find my problem.
Previously it just sent `undefined` as the bundle.