From 8ce4b6bc724c50251d972e0ca539901d5402ed36 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 28 Jun 2018 15:19:38 +0200 Subject: [PATCH] fix default severity --- src/app/tabs/compile-tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index a888263a51..d86e8b4680 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -127,7 +127,7 @@ module.exports = class CompileTab { var error = false if (data['error']) { error = true - self._deps.renderer.error(data['error'].formattedMessage, self._view.errorContainer, {type: data['error'].severity}) + self._deps.renderer.error(data['error'].formattedMessage, self._view.errorContainer, {type: data['error'].severity || 'error'}) } if (data.errors && data.errors.length) { error = true