mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
Fixed missing error handling in JS-SDK
This commit is contained in:
parent
f113222829
commit
68a4c2e402
|
@ -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." };
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user