About error reporting in nw.js, it's just like working with chrome (chromium), you see JS errors in: developer tools > console tab.
You could probably send messages to a log instead of the developer tools (might require editing the nw.js source code).