Don't hide errors
This commit is contained in:
parent
9c16c7da3d
commit
59b28ae5ee
|
|
@ -61,7 +61,9 @@ function render(requestUrl, callback) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).catch(function(error) {
|
}).catch(function(error) {
|
||||||
callback(error, null);
|
process.nextTick(() => { // Because otherwise you can't throw from inside a catch
|
||||||
|
callback(error, null);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue