Ignore:
Timestamp:
2014-06-12T12:20:16+12:00 (10 years ago)
Author:
kjdon
Message:

not sure if we need this catch for collection undefined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/import.pl

    r28703 r29097  
    192192    }
    193193  }
    194 
     194 
    195195  my $inexport;
    196196  if (defined $inexport_subclass)
     
    200200    $inexport = new $inexport_subclass("import",\@ARGV,$options);
    201201  }
     202 
    202203  # We don't have a overridden inexport, or the above command failed somehow
    203204  # so load the base inexport class
     
    208209
    209210  my $collection = $inexport->get_collection();
    210 
     211 
    211212  if (defined $collection)
    212213  {
     
    219220
    220221    $inexport->generate_statistics($pluginfo);
    221   }
    222 
     222  } else {
     223      # can this actually happen, or will we have died already before getting here
     224      print STDERR "collection not defined\n";
     225      $inexport->deinit();
     226      exit(-1);
     227  }
    223228  $inexport->deinit();
    224229}
Note: See TracChangeset for help on using the changeset viewer.