From 8b84a2d8a3dbcfa0909a9ba7ac79531244c268f2 Mon Sep 17 00:00:00 2001 From: whoswhip Date: Fri, 9 Jan 2026 20:16:45 -0500 Subject: [PATCH] fix: improve error logging for view count increment failure i honestly have no clue whats causing it to fail right now --- SharpbinV3.Client/src/routes/[id]/+page.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SharpbinV3.Client/src/routes/[id]/+page.server.ts b/SharpbinV3.Client/src/routes/[id]/+page.server.ts index d82ef3a..4240f9f 100644 --- a/SharpbinV3.Client/src/routes/[id]/+page.server.ts +++ b/SharpbinV3.Client/src/routes/[id]/+page.server.ts @@ -33,7 +33,7 @@ export const load: PageServerLoad = async ({ params, fetch, url, cookies }) => { } } else { - console.error(`Failed to increment view count for paste ${id}: ${await viewed.text()}`); + console.error(`Failed to increment view count for paste ${id}, status code ${viewed.status}: ${await viewed.text()}`); if (apiKey === '') { console.error('The API key for internal requests is not set. Please configure it in the environment variables.'); }