diff --git a/lib/utils/properties-panel.js b/lib/utils/properties-panel.js index bad6396..ec2caf7 100644 --- a/lib/utils/properties-panel.js +++ b/lib/utils/properties-panel.js @@ -313,9 +313,9 @@ export function getErrorMessage(id, report) { executionPlatformVersion } = report; - // do not override FEEL message + // adjust FEEL message if (data.type === ERROR_TYPES.FEEL_EXPRESSION_INVALID) { - return; + return 'Unparsable FEEL expression.'; } if (data.type === ERROR_TYPES.EXPRESSION_NOT_ALLOWED) { diff --git a/test/spec/utils/properties-panel.spec.js b/test/spec/utils/properties-panel.spec.js index ec529ca..cbc302f 100644 --- a/test/spec/utils/properties-panel.spec.js +++ b/test/spec/utils/properties-panel.spec.js @@ -1303,6 +1303,33 @@ describe('utils/properties-panel', function() { const INVALID_FEEL = '==='; + it('should adjust error message', async function() { + + // given + const node = createElement('bpmn:ServiceTask', { + id: 'ServiceTask_1', + extensionElements: createElement('bpmn:ExtensionElements', { + values: [ + createElement('zeebe:IoMapping', { + inputParameters: [ + createElement('zeebe:Input', { + source: INVALID_FEEL + }) + ] + }) + ] + }) + }); + + // when + const report = await getLintError(node, rule); + const entryIds = getEntryIds(report); + + // then + expectErrorMessage(entryIds[ 0 ], 'Unparsable FEEL expression.', report); + }); + + it('should return error for input mapping', async function() { // given