Fix network plugin bug

Summary:
Some network requests are yielding error: e.getMessage() is not a function.
It shouldn't be .getMessage(), it should be .message

Reviewed By: priteshrnandgaonkar

Differential Revision: D13137334

fbshipit-source-id: 72c782376c8e62a05c5e9ce1b956566ce1fc5bf0
This commit is contained in:
John Knox
2018-11-20 06:38:48 -08:00
committed by Facebook Github Bot
parent 67dd1fc596
commit bbdbb94415

View File

@@ -346,7 +346,7 @@ class RequestBodyInspector extends Component<{
} catch (e) {
console.warn(
'BodyFormatter exception from ' + formatter.constructor.name,
e.getMessage(),
e.message,
);
}
}
@@ -377,7 +377,7 @@ class ResponseBodyInspector extends Component<{
} catch (e) {
console.warn(
'BodyFormatter exception from ' + formatter.constructor.name,
e.getMessage(),
e.message,
);
}
}