mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 23:28:59 +08:00
fix(llm-extract): pass stacktrace properly
This commit is contained in:
parent
e4adbaa88e
commit
4bd2ff26d3
@ -46,7 +46,7 @@ export async function generateCompletions(
|
||||
return completionResult;
|
||||
} catch (error) {
|
||||
Logger.error(`Error generating completions: ${error}`);
|
||||
throw new Error(`Error generating completions: ${error.message}`);
|
||||
throw error;
|
||||
}
|
||||
default:
|
||||
throw new Error("Invalid client");
|
||||
|
Loading…
x
Reference in New Issue
Block a user