// color: 0xea5455,
// })
- router.onError(error => {
+ router.onError((error, to) => {
api.addTimelineEvent({
layerId: navigationsLayerId,
event: {
- title: 'Error',
- subtitle: 'An uncaught error happened during navigation',
+ title: 'Error during Navigation',
+ subtitle: to.fullPath,
logType: 'error',
time: Date.now(),
data: { error },
+ groupId: (to.meta as any).__navigationId,
},
})
})
event: {
time: Date.now(),
title: 'Start of navigation',
+ subtitle: to.fullPath,
data,
groupId: (to.meta as any).__navigationId,
},
layerId: navigationsLayerId,
event: {
title: 'End of navigation',
+ subtitle: to.fullPath,
time: Date.now(),
data,
logType: failure ? 'warning' : 'default',