diff --git a/src/UI/MainWindow.cc b/src/UI/MainWindow.cc
index 6c564ae43eb53b08e71a837693a75f0ccfcde6da..59d30f31c6702dc0c852a967b006cef5070ea38d 100644
--- a/src/UI/MainWindow.cc
+++ b/src/UI/MainWindow.cc
@@ -347,8 +347,8 @@ MainWindow::openDocument() noexcept
             ScriptDocumentView *newView = new ScriptDocumentView(scriptDocument, documents);
 
             if (!rc) {
-                const auto &[line, desc] = std::tuple{ 0, vivyApp->scriptStore->getLastLuaError() };
-                emit newView->luaErrorFound(line, desc);
+                logError() << "Failed to execute script document " << VIVY_LOG_QUOTED(filename)
+                           << " with code: " << rc;
             }
 
             addTab(newView);
diff --git a/src/UI/ScriptDocumentView.cc b/src/UI/ScriptDocumentView.cc
index 9fabc4b3b906d2055902916b94deca0dbb9d0c1d..2383f662df45a43c1352f5c09bde34ff77e150ce 100644
--- a/src/UI/ScriptDocumentView.cc
+++ b/src/UI/ScriptDocumentView.cc
@@ -24,7 +24,6 @@ ScriptDocumentView::ScriptDocumentView(std::shared_ptr<ScriptDocument> ptr, QWid
 
     setUseFakeVimEditor(vivyApp->getUseFakeVimEditor());
 
-    connect(this, &ScriptDocumentView::luaErrorFound, editor, &ScriptEditor::updateLastLuaError);
     connect(document.get(), &AbstractDocument::documentChanged, this,
             [=, this]() noexcept -> void { emit documentPropertyChanged(); });
 
diff --git a/src/UI/ScriptDocumentView.hh b/src/UI/ScriptDocumentView.hh
index a348e317342219b1583b07b56866a25bb71e1274..8b087ea05eef7f91930a1abde67e15eb12fc3c5f 100644
--- a/src/UI/ScriptDocumentView.hh
+++ b/src/UI/ScriptDocumentView.hh
@@ -37,9 +37,6 @@ public:
 
     void setUseFakeVimEditor(bool yes) noexcept;
 
-signals:
-    void luaErrorFound(int, QString);
-
 private:
     ScriptEditor *editor{ nullptr };
     EditorProxy *proxy{ nullptr };
diff --git a/src/UI/ScriptViews/ScriptEditor.cc b/src/UI/ScriptViews/ScriptEditor.cc
index 6f7de9cf28aaffe744b247462624c35b03a43436..290e6cc7c8f0660989f7de3bc86490b0d1a85c44 100644
--- a/src/UI/ScriptViews/ScriptEditor.cc
+++ b/src/UI/ScriptViews/ScriptEditor.cc
@@ -165,9 +165,3 @@ ScriptEditor::lineNumberAreaPaintEvent(QPaintEvent *event) noexcept
         ++blockNumber;
     }
 }
-
-void
-ScriptEditor::updateLastLuaError(int line, QString desc)
-{
-    logDebug() << "Update error on line " << line << " with description " << desc;
-}
diff --git a/src/UI/ScriptViews/ScriptEditor.hh b/src/UI/ScriptViews/ScriptEditor.hh
index f9afe789a37948e66ba29fa91ff2f1a9e2cc5fa5..23b748d92b6ecdb7bd242beee0696a89dafa9067 100644
--- a/src/UI/ScriptViews/ScriptEditor.hh
+++ b/src/UI/ScriptViews/ScriptEditor.hh
@@ -41,9 +41,6 @@ public:
     void lineNumberAreaPaintEvent(QPaintEvent *event) noexcept;
     int lineNumberAreaWidth() noexcept;
 
-public slots:
-    void updateLastLuaError(int, QString);
-
 protected:
     void resizeEvent(QResizeEvent *) noexcept override;
     void keyPressEvent(QKeyEvent *) noexcept override;
diff --git a/src/VivyApplication.cc b/src/VivyApplication.cc
index 2944b0890f1764d25c651b0b48944a4b96c37b3e..18f0f14e28bdb0236538a7f849519fec6c5abfe6 100644
--- a/src/VivyApplication.cc
+++ b/src/VivyApplication.cc
@@ -37,9 +37,6 @@ VivyApplication::VivyApplication(int &argc, char **argv)
                 logError() << "Unrecognized file type for file " << passedFileName;
             }
         }
-
-        selectedType = ApplicationType::CLI;
-        VIVY_LOG_CTOR() << "Select the ApplicationType::CLI";
     }
 }