mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Trim invalid response blob msg
Summary: Small tweak to #43069 - trim the message to avoid ending with a newline. Changelog: [General][Changed] - Trim invalid blob response error message Reviewed By: christophpurrer Differential Revision: D54422284 fbshipit-source-id: 53a4e963f8aba36c55e16ad7539b2f2d98c781f8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d9b0f15c84
commit
30463fb007
@@ -250,7 +250,7 @@ class XMLHttpRequest extends (EventTarget(...XHR_EVENTS): any) {
|
||||
} else {
|
||||
throw new Error(
|
||||
'Invalid response for blob - expecting object, was ' +
|
||||
`${typeof this._response}: ${this._response}`,
|
||||
`${typeof this._response}: ${this._response.trim()}`,
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user