Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ij/macro/Interpreter.java
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,9 @@ void error (String message) {
String line = getErrorLine();
done = true;
if (line.length()>120)
line = line.substring(0,119)+"...";
String truncatedLine = line.substring(0,119);
else
truncatedLine = line;
Frame f = WindowManager.getFrame("Debug");
TextPanel panel = null;
if (showVariables && f!=null && (f instanceof TextWindow)) { //clear previous content
Expand All @@ -1392,7 +1394,7 @@ void error (String message) {
calledFrom += "\t\t(called from line " + theline +")\n";
}
}
showError("Macro Error", message+" in line "+lineNumber +"\n" + calledFrom +" \n"+line, variables);
showError("Macro Error", message+" in line "+lineNumber +"\n" + calledFrom +" \n"+truncatedLine+"...", variables);
f = WindowManager.getFrame("Debug");
if (showVariables && f!=null && (f instanceof TextWindow)) {
TextWindow debugWindow = (TextWindow)f;
Expand Down