mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 15:45:32 +00:00
[ReactNative][easy] fix server 500 response typo
Summary: @public corrected small typo in the 500 response from the packager server Test Plan: add throw to promise function prior to error handler, run packager, cache a bundle with bundle extension URI, open /debug/packages, see clean 500 error
This commit is contained in:
parent
2845e78080
commit
5aee4cec98
2
packager/react-packager/src/Server/index.js
vendored
2
packager/react-packager/src/Server/index.js
vendored
@ -237,7 +237,7 @@ Server.prototype._processDebugRequest = function(reqUrl, res) {
|
|||||||
}, this)).then(
|
}, this)).then(
|
||||||
function() { res.end(ret); },
|
function() { res.end(ret); },
|
||||||
function(e) {
|
function(e) {
|
||||||
res.wrteHead(500);
|
res.writeHead(500);
|
||||||
res.end('Internal Error');
|
res.end('Internal Error');
|
||||||
console.log(e.stack);
|
console.log(e.stack);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user