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 b5ad0ce commit 6ff63f2Copy full SHA for 6ff63f2
packages/gitbook/src/lib/data/errors.ts
@@ -181,9 +181,6 @@ export function extractCacheControl(error: GitBookAPIError) {
181
*/
182
export function getExposableError(error: Error): DataFetcherErrorData {
183
if (error instanceof GitBookAPIError) {
184
- if (error.code >= 500) {
185
- throw error;
186
- }
187
const cache = extractCacheControl(error);
188
189
return {
@@ -194,10 +191,6 @@ export function getExposableError(error: Error): DataFetcherErrorData {
194
191
}
195
192
196
193
if (error instanceof DataFetcherError) {
197
198
199
200
-
201
202
code: error.code,
203
message: error.message,
0 commit comments