We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f7e81c commit c26b03bCopy full SHA for c26b03b
packages/blob/src/client.ts
@@ -325,8 +325,9 @@ async function tryGetErrorMessageFromResponse(res: Response) {
325
const jsonBody = await res.json().catch(() => null);
326
if (!jsonBody) return;
327
if (typeof jsonBody !== 'object') return;
328
- if ('error' in jsonBody && typeof jsonBody.error === 'string')
+ if ('error' in jsonBody && typeof jsonBody.error === 'string') {
329
return jsonBody.error;
330
+ }
331
}
332
333
function isAbsoluteUrl(url: string): boolean {
0 commit comments