Ignore:
Timestamp:
Jan 12, 2011, 3:59:03 PM (10 years ago)
Author:
t.w.abma@…
Message:
  • casting errors are nog being ignored, but are at least logged, errors should go in a wizardError like popup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/dbnp/importer/ImporterService.groovy

    r1367 r1376  
    440440                    switch (mc.entity) {
    441441                        case Study: // does the entity already exist in the record? If not make it so.
    442                         (record.any {it.getClass() == mc.entity}) ? 0 : record.add(study)
     442                        (record.any {it.getClass() == mc.entity}) ? 0 : record.add(study)                       
    443443                                                study.setFieldValue(mc.property, value)
    444444                                                break
     
    458458                                                break
    459459                    } // end switch
    460                 } catch (IllegalArgumentException iae) {
     460                } catch (Exception iae) {
     461                    log.error ".import wizard error could not set property `" + mc.property + "` to value `" + value + "`"
    461462                    // store the mapping column and value which failed
    462463                    def identifier
Note: See TracChangeset for help on using the changeset viewer.