resizable console and text area [danh]

beginnings of better error message when void is missing [danh]
This commit is contained in:
benfry
2003-07-15 23:53:34 +00:00
parent bd3c76a3df
commit 01c65e11a8
3 changed files with 50 additions and 23 deletions

View File

@@ -51,6 +51,11 @@ public class PdeCompilerKjc extends PdeCompiler {
//err += "error:".length();
String description = s1.substring(err + "error:".length());
description = description.trim();
// as in: ...error:Constructor setup must be named Temporary_5362_2548 [JL1 8.6]
if(description.indexOf("Constructor setup must be named") != -1) {
description = "Missing function return type, or constructor does not match class name";
}
//exception = new PdeException(description, lineNumber-2);
exception = new PdeException(description, lineNumber-1);
editor.error(exception);