Ignore:
Timestamp:
03/01/06 09:36:39 (19 years ago)
Author:
boris
Message:
  • added a check in the error message parsing code makeing it more robust (in the face of omc wierdness)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt.omc/src/org/modelica/mdt/omc/internal/OMCParser.java

    r307 r387  
    113113           
    114114            /*
     115             * we expect 5 (on unix) or 6 (on windows) ':' separated parts in a
     116             * proper error location string
     117             */
     118            if (errorLocationParts.length < 5 ||
     119                errorLocationParts.length > 6 )
     120            {
     121                throw new UnexpectedReplyException("Weird error message from "+
     122                        "the compiler: [" + errorLine + "]");               
     123            }
     124            /*
    115125             * This is the ugliest hack in a long while. Aaaah, nice.
    116126             *
     
    119129             *   a separator in error messages, where the line and column
    120130             *   numbers are found varies. If on Windows, the info we want
    121              *   starts at array index 2, and on more normal systems, it starts
     131             *   starts at array index 2, and on Unix, it starts
    122132             *   at array index 1. Simply check if the element at index 1 is
    123133             *   a digit or something else. Use this to set where in the array
Note: See TracChangeset for help on using the changeset viewer.