mirror of https://github.com/status-im/metro.git
[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
695a5c2fbc
commit
050f0b3558
|
@ -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…
Reference in New Issue