From ad1abe7a7a9ca9e4ab8c76d69df28ce46b0f475b Mon Sep 17 00:00:00 2001 From: Bastiaan Date: Sun, 11 Jan 2026 12:46:07 +0100 Subject: [PATCH] fix: error logging.. --- pkgs/@strootje/more/mod.api.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/@strootje/more/mod.api.ts b/pkgs/@strootje/more/mod.api.ts index 09245bb..f7c34fb 100644 --- a/pkgs/@strootje/more/mod.api.ts +++ b/pkgs/@strootje/more/mod.api.ts @@ -30,6 +30,11 @@ export const reqres = ( ) => { return async (input: SS.InferInput): Promise> => { const result = await func(validateSync(schema.req, input)); + + if (!result.ok) { + console.log(`[@strootje/more/api] ::: [ERROR]: ${result}`); + } + return validateSync(schema.res, await result.json()); }; }; -- 2.51.2