File tree 4 files changed +6
-7
lines changed 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ class Shape;
29
29
30
30
struct Error {
31
31
QString error;
32
- QString stack;
33
32
QRect range;
34
33
};
35
34
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ void Editor::onInterpreterDone(Result r)
142
142
143
143
emit (shapes (r.shapes ));
144
144
} else {
145
- setResult (Color::red, r.error .error + " \n\n Stack trace: \n " + r. error . stack );
145
+ setResult (Color::red, r.error .error );
146
146
147
147
// Add new selections for errors in the script doc
148
148
QTextCursor c (script_doc);
Original file line number Diff line number Diff line change @@ -247,10 +247,10 @@ void Interpreter::eval(QString script)
247
247
const int end_col = scm_to_int (scm_cdr (after));
248
248
249
249
out.error = Error {
250
- QString (str), QString (stack),
251
- QRect (start_col, start_row,
252
- end_col - start_col + 1 ,
253
- end_row - start_row) };
250
+ QString (str) + " \n\n Stack trace: \n " + QString (stack),
251
+ QRect (start_col, start_row,
252
+ end_col - start_col + 1 ,
253
+ end_row - start_row) };
254
254
free (str);
255
255
free (stack);
256
256
}
Original file line number Diff line number Diff line change @@ -535,7 +535,7 @@ void Interpreter::eval(QString script)
535
535
const auto s = PyObject_Str (value);
536
536
const auto ws = PyUnicode_AsWideCharString (s, NULL );
537
537
PyErr_Print ();
538
- out.error = {QString::fromWCharArray (ws), " " , QRect ()};
538
+ out.error = {QString::fromWCharArray (ws), QRect ()};
539
539
PyMem_Free (ws);
540
540
Py_XDECREF (s);
541
541
}
You can’t perform that action at this time.
0 commit comments