From 3b19acfd19f03b5af25f81b88a168b3faf930c27 Mon Sep 17 00:00:00 2001 From: Marcos Candeia Date: Mon, 10 Jun 2024 13:20:02 -0300 Subject: [PATCH] Error generating styles Signed-off-by: Marcos Candeia --- plugins/tailwind/mod.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/tailwind/mod.ts b/plugins/tailwind/mod.ts index 714b4a91..4621d771 100644 --- a/plugins/tailwind/mod.ts +++ b/plugins/tailwind/mod.ts @@ -18,7 +18,9 @@ const safe = (cb: () => Promise) => async () => { return new Response(null, { status: 404 }); } - return new Response(Deno.inspect(error, { colors: false, depth: 100 }), { + const errStack = Deno.inspect(error, { colors: false, depth: 100 }); + console.error(`error generating styles`, errStack); + return new Response(errStack, { status: 500, }); }