From 513e63193e9c68fe62ed454a6ad8adb111b1904c Mon Sep 17 00:00:00 2001 From: GriffinR Date: Wed, 3 Jan 2024 12:18:02 -0500 Subject: [PATCH] Restore error interrupted silencing --- src/scriptapi/scripting.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scriptapi/scripting.cpp b/src/scriptapi/scripting.cpp index 3ef50ba2..5f56008f 100644 --- a/src/scriptapi/scripting.cpp +++ b/src/scriptapi/scripting.cpp @@ -119,8 +119,8 @@ bool Scripting::tryErrorJS(QJSValue js) { // The script engine is interrupted during project reopen, during which // all script modules intentionally return as error objects. // We don't need to report these "errors" to the user. - //if (errStr == "Error: Interrupted") - // return false; + if (errStr == "Error: Interrupted") + return false; // Convert properties to message strings QString fileErrStr = fileName == "undefined" ? "" : QString(" '%1'").arg(fileName);