better logging

This commit is contained in:
Henry Jameson 2026-08-14 19:38:50 +03:00
commit ed9b308456
3 changed files with 3 additions and 1 deletions

View file

@ -99,13 +99,13 @@ const fetchNotifications = ({ args, older }) => {
return fetchNotifications({ args, older })
}
console.error('Notifications Error', error)
useInterfaceStore().pushGlobalNotice({
level: 'error',
messageKey: 'notifications.error',
messageArgs: [error.message],
timeout: 5000,
})
console.error(error)
})
.finally(() => {
useNotificationsStore().setLoading(false)

View file

@ -75,6 +75,7 @@ const fetchAndUpdate = (
useInstanceCapabilitiesStore().pleromaPublicFavouritesAvailable = false
return
}
console.error('Timeline Error', error)
useInterfaceStore().pushGlobalNotice({
level: 'error',
messageKey: 'timeline.error',

View file

@ -336,6 +336,7 @@ export const useStatusesStore = defineStore('statuses', {
.catch((error) => {
optimisticCall(id, oldValue, argument)
console.error('Interact Error', error)
useInterfaceStore().pushGlobalNotice({
level: 'error',
messageKey: 'status.interact_error',