better logging
This commit is contained in:
parent
55f5ae6a6c
commit
ed9b308456
3 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ const fetchAndUpdate = (
|
|||
useInstanceCapabilitiesStore().pleromaPublicFavouritesAvailable = false
|
||||
return
|
||||
}
|
||||
console.error('Timeline Error', error)
|
||||
useInterfaceStore().pushGlobalNotice({
|
||||
level: 'error',
|
||||
messageKey: 'timeline.error',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue