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:
Thomas Nardone
2024-03-01 13:32:15 -08:00
committed by Facebook GitHub Bot
parent d9b0f15c84
commit 30463fb007
+1 -1
View File
@@ -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;