mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
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:
@@ -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.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user