Skip to content

Commit 59b28ae

Browse files
Don't hide errors
1 parent 9c16c7d commit 59b28ae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

samples/react/MusicStore/ReactApp/render-server.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ function render(requestUrl, callback) {
6161
}
6262
});
6363
}).catch(function(error) {
64-
callback(error, null);
64+
process.nextTick(() => { // Because otherwise you can't throw from inside a catch
65+
callback(error, null);
66+
});
6567
});
6668
}
6769

0 commit comments

Comments
 (0)