mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Don't hide errors
This commit is contained in:
@@ -61,8 +61,10 @@ function render(requestUrl, callback) {
|
||||
}
|
||||
});
|
||||
}).catch(function(error) {
|
||||
process.nextTick(() => { // Because otherwise you can't throw from inside a catch
|
||||
callback(error, null);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
render('/', (err, html) => {
|
||||
|
||||
Reference in New Issue
Block a user