Fixed missing error handling in JS-SDK

This commit is contained in:
rafaelsideguide 2024-10-10 16:29:35 -03:00
parent f113222829
commit 68a4c2e402

View File

@ -287,7 +287,7 @@ export default class FirecrawlApp {
this.handleError(response, "scrape URL");
}
} catch (error: any) {
throw new FirecrawlError(error.message, 500);
this.handleError(error.response, "scrape URL");
}
return { success: false, error: "Internal server error." };
}