mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-11 22:08:57 +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");
|
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…
x
Reference in New Issue
Block a user