fix: improve error logging for view count increment failure

i honestly have no clue whats causing it to fail right now
This commit is contained in:
2026-01-09 20:16:45 -05:00
parent ccdb000934
commit 8b84a2d8a3
@@ -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.');
}