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()); }; };