Don't hide errors

This commit is contained in:
SteveSandersonMS
2016-02-07 22:13:44 -08:00
parent 9c16c7da3d
commit 59b28ae5ee

View File

@@ -61,7 +61,9 @@ function render(requestUrl, callback) {
}
});
}).catch(function(error) {
callback(error, null);
process.nextTick(() => { // Because otherwise you can't throw from inside a catch
callback(error, null);
});
});
}