Skip to content

Commit

Permalink
Remove Error::DB::Open
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Oct 3, 2020
1 parent 57f750b commit 54ebf82
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 0 additions & 7 deletions Error/DB/Open.pm

This file was deleted.

3 changes: 1 addition & 2 deletions lib/Geo/Coder/Free/DB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ use File::Spec;
use File::pfopen 0.02;
use File::Temp;
use Error::Simple;
use Error::DB::Open;
use Carp;

our $directory;
Expand Down Expand Up @@ -278,7 +277,7 @@ sub _open {
}
$dbh->func($table, 'XML', $slurp_file, 'xmlsimple_import');
} else {
throw Error::DB::Open(-file => $slurp_file);
throw Error::Simple("Can't open $slurp_file");
}
$self->{'type'} = 'XML';
}
Expand Down

0 comments on commit 54ebf82

Please sign in to comment.