`function(e) {reportFail(JSON.stringify(e))});` ditto in all places.