Project

General

Profile

Revision 98a11dec

ID98a11dec3bef998edea47e1db8b4b736d1d6bc3f
Parent 9232c7e7
Child c42080c5

Added by Andreas M├╝ller about 3 years ago

ref #6636: try to improve debugging for RIS import

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/reference/ris/in/RisRecordReader.java
98 98
                           }
99 99
                           if (type == null){
100 100
                               //TODO
101
                               //Sollte aber als als extension trotzdem ├╝bergeben werden
102
                               String message = "Unknown reference type %s . Reference attribute could not be added. Line was: " + lineOrig ;
101
                               //But should be handled as "Extension"
102
                               String message = "Unknown reference type %s . Reference attribute could not be added. ";
103 103
                               state.getResult().addWarning(message, lineNo);
104 104
                           }else{
105 105
                               addTaggedValue(type, result, line, lineNo);
......
117 117
                       RisValue priorValue = priorList.get(priorList.size()-1);
118 118
                       priorValue.value = priorValue + NL + line;
119 119
                   }else{
120
                       String message = "RIS record does not start with TY. Can't create record. ";
120
                       String message = "RIS record does not start with TY. Can't create record. Line was: " + lineOrig ;
121 121
                       state.getResult().addError(message, lineNoStr);
122
                       return null;
123 122
                   }
124 123

  
125 124
               }
126 125
            }
127 126
            if (count>0){
128
                String message = lineNoStr + "Unexpected end of file. Some records may not have been imported";
129
                state.getResult().addError(message, lineNo);
127
                String message = "Unexpected end of file. Some records may not have been imported";
128
                state.getResult().addError(message, lineNoStr);
130 129
            }
131 130
            return EOF;
132 131

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)