Skip to content

Commit

Permalink
Add Sort::Naturally to the config require checks
Browse files Browse the repository at this point in the history
These can be cleaned up in the next major release.
  • Loading branch information
shawnlaffan committed Sep 22, 2016
1 parent da693a2 commit c756b47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Biodiverse/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ BEGIN {
. "at the command prompt.\n"
. "See https://metacpan.org/release/Cpanel-JSON-XS for more details about what it does.";
}
if (not eval {require Sort::Naturally}) {
die "Cannot locate the Sort::Naturally package. You probably need to install it using, for example:\n"
. "cpanm Sort::Naturally\n"
. "at the command prompt.\n"
. "See https://metacpan.org/pod/Sort::Naturally for more details about what it does.";
}
}

# add biodiverse lib paths so we get all the extensions
Expand Down

0 comments on commit c756b47

Please sign in to comment.