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 })
|
return fetchNotifications({ args, older })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.error('Notifications Error', error)
|
||||||
useInterfaceStore().pushGlobalNotice({
|
useInterfaceStore().pushGlobalNotice({
|
||||||
level: 'error',
|
level: 'error',
|
||||||
messageKey: 'notifications.error',
|
messageKey: 'notifications.error',
|
||||||
messageArgs: [error.message],
|
messageArgs: [error.message],
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
})
|
})
|
||||||
console.error(error)
|
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
useNotificationsStore().setLoading(false)
|
useNotificationsStore().setLoading(false)
|
||||||
|
|
|
||||||
|
|
@ -75,6 +75,7 @@ const fetchAndUpdate = (
|
||||||
useInstanceCapabilitiesStore().pleromaPublicFavouritesAvailable = false
|
useInstanceCapabilitiesStore().pleromaPublicFavouritesAvailable = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
console.error('Timeline Error', error)
|
||||||
useInterfaceStore().pushGlobalNotice({
|
useInterfaceStore().pushGlobalNotice({
|
||||||
level: 'error',
|
level: 'error',
|
||||||
messageKey: 'timeline.error',
|
messageKey: 'timeline.error',
|
||||||
|
|
|
||||||
|
|
@ -336,6 +336,7 @@ export const useStatusesStore = defineStore('statuses', {
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
optimisticCall(id, oldValue, argument)
|
optimisticCall(id, oldValue, argument)
|
||||||
|
|
||||||
|
console.error('Interact Error', error)
|
||||||
useInterfaceStore().pushGlobalNotice({
|
useInterfaceStore().pushGlobalNotice({
|
||||||
level: 'error',
|
level: 'error',
|
||||||
messageKey: 'status.interact_error',
|
messageKey: 'status.interact_error',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue