Skip to content

Commit

Permalink
update toast error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Jul 5, 2021
1 parent 4b26074 commit 9c2773b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ export const IlmPolicyMigrationNeededCallOut: FunctionComponent<Props> = ({
onMigrationDone();
toasts.addSuccess({ title: i18nTexts.migrateSuccessTitle });
} catch (e) {
toasts.addError(e, { title: i18nTexts.migrateErrorTitle });
toasts.addError(e, {
title: i18nTexts.migrateErrorTitle,
toastMessage: e.body?.message,
});
} finally {
setIsMigratingIndices(false);
}
Expand Down

0 comments on commit 9c2773b

Please sign in to comment.