mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Don't hide errors
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user