Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix: error log for api prompts (#966)

Richard Krümmelf7e20a9ff671
diff --git a/src/features/prompts/server/prompt-router.ts b/src/features/prompts/server/prompt-router.ts
index 304c31e018..bfdd4d91e2 100644
--- a/src/features/prompts/server/prompt-router.ts
+++ b/src/features/prompts/server/prompt-router.ts
@@ -173,7 +173,7 @@ export const promptRouter = createTRPCRouter({
}
if (!user) {
console.log(`User not found for promptId ${p.id}`);
- throw new Error("User not found for promptId ${p.id}");
+ throw new Error(`User not found for promptId ${p.id}`);
}
return {
...p,