Skip to content

Commit 67a4880

Browse files
committed
Controller mapping error message: increase readability with more line breaks
1 parent 0648e05 commit 67a4880

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/controllers/scripting/controllerscriptenginebase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ void ControllerScriptEngineBase::showScriptExceptionDialog(
109109
if (filename.isEmpty()) {
110110
filename = QStringLiteral("<passed code>");
111111
}
112-
QString errorText = QString("Uncaught exception: %1:%2: %3").arg(filename, line, errorMessage);
112+
QString errorText = QString("Uncaught exception: %1:%2:\n%3").arg(filename, line, errorMessage);
113113

114114
// Do not include backtrace in dialog key because it might contain midi
115115
// slider values that will differ most of the time. This would break
116116
// the "Ignore" feature of the error dialog.
117117
QString key = errorText;
118118

119119
// Add backtrace to the error details
120-
errorText += QStringLiteral("\nBacktrace: ") + backtrace;
120+
errorText += QStringLiteral("\n\nBacktrace: ") + backtrace;
121121
qCWarning(m_logger) << "ControllerScriptHandlerBase:" << errorText;
122122

123123
if (!m_bDisplayingExceptionDialog) {

0 commit comments

Comments
 (0)