We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8b8ee5 commit 1fdd1d1Copy full SHA for 1fdd1d1
1 file changed
src/utils/client.ts
@@ -65,6 +65,10 @@ const request = async<T = unknown>(
65
console.error(`Timing: ${Date.now()-start}ms
66
(attempt ${attempt+1})`);
67
}
68
+ const brd_error = res.headers.get('x-brd-error')
69
+ || res.headers.get('x-luminati-error');
70
+ if (brd_error)
71
+ throw new Error(`Error: ${brd_error}`);
72
if (res.ok)
73
{
74
if (opts.raw_buffer)
0 commit comments