Changeset 1401


Ignore:
Timestamp:
06/09/11 12:37:15 (13 years ago)
Author:
patdui
Message:

Making sure incorrect xsd's are tried only once during an import other metadata files will just fail quickly and won't attempt to parse the xsd again. Makes errors much easier to spot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/trunk/vlo_webapp/src/main/java/eu/clarin/cmdi/vlo/importer/FacetMappingFactory.java

    r1383 r1401  
    9898        boolean parseSuccess = vg.parseHttpUrl(xsd, true);
    9999        if (!parseSuccess) {
    100             throw new RuntimeException("Cannot create ConceptLink Map from xsd (xsd is probably not reachable): "+xsd);
     100            LOG.error("Cannot create ConceptLink Map from xsd (xsd is probably not reachable): "+xsd+". All metadats instances that use this xsd will not be imported correctly.");
     101            return result; //return empty map, so the incorrect xsd is not tried for all metadata instances that specify it.
    101102        }
    102103        VTDNav vn = vg.getNav();
Note: See TracChangeset for help on using the changeset viewer.