diff --git a/mix/qml/Debugger.qml b/mix/qml/Debugger.qml index c6283b60e..9decc91ae 100644 --- a/mix/qml/Debugger.qml +++ b/mix/qml/Debugger.qml @@ -4,7 +4,6 @@ import QtQuick.Controls.Styles 1.1 import QtQuick.Dialogs 1.1 import QtQuick.Layouts 1.1 import Qt.labs.settings 1.0 -import QtGraphicalEffects 1.0 import "js/Debugger.js" as Debugger import "js/ErrorLocationFormater.js" as ErrorLocationFormater import "." diff --git a/mix/qml/WebCodeEditor.qml b/mix/qml/WebCodeEditor.qml index 32e62d584..babb200e8 100644 --- a/mix/qml/WebCodeEditor.qml +++ b/mix/qml/WebCodeEditor.qml @@ -155,14 +155,15 @@ Item { for (var k in secondLocations) { lineError = secondLocations[k].start.line + 1; - secondErrorDetail += secondLocations[k].contractName + " line " + lineError + ", "; + secondErrorDetail += secondLocations[k].contractName + " line " + lineError + " - "; displayErrorAnnotations(secondLocations[k], errorOrigin, "second"); } var detail = error.split('\n')[0]; var reg = detail.match(/:\d+:\d+:/g); if (reg !== null) detail = detail.replace(reg[0], ""); - detail += secondErrorDetail; + if (secondLocations.length > 0) + detail += secondErrorDetail; displayErrorAnnotations(firstLocation, detail, "first"); }