equal
deleted
inserted
replaced
45 } |
45 } |
46 |
46 |
47 my $storage = $storage_class->new(config => $config->{Storage}); |
47 my $storage = $storage_class->new(config => $config->{Storage}); |
48 |
48 |
49 foreach my $arg (@ARGV) { |
49 foreach my $arg (@ARGV) { |
50 my $pjson = decode_json(slurp $arg); |
50 eval { |
|
51 my $pjson = decode_json(slurp $arg); |
51 |
52 |
52 my($filename, $dirs, $suffix) = fileparse($arg, qr/\.[^.]*/); |
53 my($filename, $dirs, $suffix) = fileparse($arg, qr/\.[^.]*/); |
53 |
54 |
54 my $uuid = $filename; |
55 my $uuid = $filename; |
55 $storage->_db_insert_processed_data($uuid, $pjson); |
56 $storage->_db_insert_processed_data($uuid, $pjson); |
|
57 }; |
|
58 warn $@ if $@; |
56 } |
59 } |