diff options
Diffstat (limited to 'hooks/mod.ts')
-rwxr-xr-x | hooks/mod.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hooks/mod.ts b/hooks/mod.ts index cc29e43..bef822e 100755 --- a/hooks/mod.ts +++ b/hooks/mod.ts @@ -45,7 +45,8 @@ Deno.serve(addr, async (req) => { if (pathname === "/checkout_ci") { const { remote, rev, refname } = await req.json(); if (![remote, rev, refname].every(validateIdentifier)) { - return new Response("invalid request", { + logger.log("invalid reqwest\n"); + return new Response("invalid reqwest >:D\n", { status: 400, }); } @@ -64,7 +65,7 @@ Deno.serve(addr, async (req) => { }); } - return new Response("idk what that is bro\n", { status: 404 }); + return new Response("idk what that is bro :((\n", { status: 404 }); } catch (e) { logger.error("Uncaught exception", e); return new Response("womp womp D:\n", { status: 500 }); |