Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
hassiebp committed Nov 26, 2024
1 parent 5e0fe58 commit cc8f981
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion langfuse-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ class LangfuseFetchNetworkError extends Error {
name = "LangfuseFetchNetworkError";

constructor(public error: unknown) {
super("Network error while fetching Langfuse", error instanceof Error ? { cause: error } : {});
super(
error instanceof Error
? `Network error while fetching Langfuse: ${error.message}`
: "Network error while fetching Langfuse"
);
}
}

Expand Down

0 comments on commit cc8f981

Please sign in to comment.