Changeset 402 for trunk/org.modelica.mdt.omc/src
- Timestamp:
- 03/09/06 09:28:43 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.omc/src/org/modelica/mdt/omc/internal/OMCParser.java
r387 r402 69 69 throws UnexpectedReplyException 70 70 { 71 if(errorString.equals("")) 72 { 73 throw new UnexpectedReplyException("Empty error message"); 74 } 75 71 76 StringTokenizer strTok = new StringTokenizer(errorString, "\r\n"); 77 78 if(strTok.countTokens() == 0) 79 { 80 throw new UnexpectedReplyException("Empty error message"); 81 } 82 72 83 CompileError[] compileErrs = new CompileError[strTok.countTokens()]; 73 84 … … 94 105 String[] errorParts = errorLine.split("]"); 95 106 96 if(errorParts.length <2)107 if(errorParts.length != 2) 97 108 { 98 109 throw new UnexpectedReplyException("Weird error message from "+ … … 134 145 * that the line and column numbers can be found. 135 146 */ 147 if(errorLocationParts[1].length() == 0) 148 { 149 throw new UnexpectedReplyException("Weird error message from " + 150 "the compiler: [" + errorLine + "]"); 151 } 152 136 153 char startCharacter = errorLocationParts[1].charAt(0); 137 154 int infoOffset; … … 166 183 { 167 184 ErrorManager.logError(e); 185 throw new UnexpectedReplyException("Weird error message from"+ 186 " the compiler: [" + errorLine + "]"); 168 187 } 169 188
Note: See TracChangeset
for help on using the changeset viewer.