Permalink
Browse files

Better error message

When file was '', the message was pretty unclear
  • Loading branch information...
1 parent 129bf43 commit 7d94c8689f8bc2bef8bb4bec43ef299f0b3ca9e6 @fangly fangly committed Oct 31, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Bio/DB/IndexedBase.pm
View
@@ -364,7 +364,7 @@ sub new {
$offsets = $self->index_file($path, $opts{-reindex});
$dirname = dirname($path);
} else {
- $self->throw( "$path: Invalid file or dirname");
+ $self->throw( "No file or directory called '$path'");
}
}
@{$self}{qw(dirname offsets)} = ($dirname, $offsets);

0 comments on commit 7d94c86

Please sign in to comment.