mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-09-30 20:46:57 -05:00
fix(logs): don't spam the logs with 404 and add better logging for server errors
This commit is contained in:
@@ -3,9 +3,11 @@ import { watchImmediate } from '@vueuse/core';
|
||||
import DefaultLayout from './layouts/default.vue';
|
||||
const { error } = defineProps<{ error: any }>();
|
||||
|
||||
watchImmediate([error], () => {
|
||||
console.error(error);
|
||||
});
|
||||
if (import.meta.client) {
|
||||
watchImmediate([() => error], () => {
|
||||
console.error(error);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user