mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
Merge pull request #759 from mendableai/fix/issue-758
[BUG] Fixed missing error handling in JS-SDK
This commit is contained in:
commit
5844b5bb5e
|
@ -287,7 +287,7 @@ export default class FirecrawlApp {
|
||||||
this.handleError(response, "scrape URL");
|
this.handleError(response, "scrape URL");
|
||||||
}
|
}
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
throw new FirecrawlError(error.message, 500);
|
this.handleError(error.response, "scrape URL");
|
||||||
}
|
}
|
||||||
return { success: false, error: "Internal server error." };
|
return { success: false, error: "Internal server error." };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user