Skip to content

Commit

Permalink
make sure body messages are surfaced
Browse files Browse the repository at this point in the history
  • Loading branch information
janmonschke committed Mar 12, 2024
1 parent 2000e45 commit cf2fc96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const addNoteToTimelineMiddleware: (kibana: CoreStart) => Middleware<{},
} catch (error) {
kibana.notifications.toasts.addDanger({
title: i18n.UPDATE_TIMELINE_ERROR_TITLE,
text: error?.message ?? i18n.UPDATE_TIMELINE_ERROR_TEXT,
text: error?.body?.message ?? error?.message ?? i18n.UPDATE_TIMELINE_ERROR_TEXT,
});
} finally {
store.dispatch(
Expand Down

0 comments on commit cf2fc96

Please sign in to comment.