mirror of https://github.com/status-im/metro.git
Include socket interface logs when timing out on transformer
Reviewed By: davidaurelio Differential Revision: D2819820 fb-gh-sync-id: 066fd1191c459cf3434899de6326e25f798c4b07
This commit is contained in:
parent
a401b1d166
commit
0001c20760
|
@ -136,9 +136,12 @@ class SocketClient {
|
||||||
delete this._resolvers[message.id];
|
delete this._resolvers[message.id];
|
||||||
|
|
||||||
if (message.type === 'error') {
|
if (message.type === 'error') {
|
||||||
resolver.reject(new Error(
|
const errorLog =
|
||||||
message.data + '\n' + 'See logs ' + LOG_PATH
|
message.data && message.data.indexOf('TimeoutError') === -1
|
||||||
));
|
? 'See logs ' + LOG_PATH
|
||||||
|
: getServerLogs();
|
||||||
|
|
||||||
|
resolver.reject(new Error(message.data + '\n' + errorLog));
|
||||||
} else {
|
} else {
|
||||||
resolver.resolve(message.data);
|
resolver.resolve(message.data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue