From 999d1ded237b2a776d1a824dfb9a43580144821d Mon Sep 17 00:00:00 2001 From: Robert Baillie Date: Tue, 15 Mar 2022 13:55:30 +0000 Subject: [PATCH] Added static messagePrefix to error messages --- .../ortoo-core/default/lwc/errorRenderer/errorRenderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/default/ortoo-core/default/lwc/errorRenderer/errorRenderer.js b/framework/default/ortoo-core/default/lwc/errorRenderer/errorRenderer.js index 65b7a7de876..54cf8f2ef02 100644 --- a/framework/default/ortoo-core/default/lwc/errorRenderer/errorRenderer.js +++ b/framework/default/ortoo-core/default/lwc/errorRenderer/errorRenderer.js @@ -7,7 +7,7 @@ import ERROR_TITLE from '@salesforce/label/c.ortoo_core_error_title'; const displayError = function( error, options ) { const title = options?.title ? options.title : ERROR_TITLE; - const messagePrefix = options?.messagePrefix ? options.messagePrefix + ': ' : ''; + const messagePrefix = options?.messagePrefix ? options.messagePrefix + ': ' : 'Your action could not be completed: '; // TODO: should be a label const mode = options?.mode ? options.mode : 'sticky'; const variant = options?.variant ? options.variant : 'error';