implemented logging

This commit is contained in:
2026-03-25 11:43:53 +01:00
parent df71ceea7a
commit 2723fb0ca3
4 changed files with 28 additions and 2 deletions

View File

@@ -25,7 +25,8 @@ try {
error = 'Post not found';
}
} catch (e) {
error = 'Could not connect to backend';
error = `Could not connect to backend at ${API_URL}: ${e instanceof Error ? e.message : String(e)}`;
console.error(error);
}
function formatSlug(slug: string) {