Skip to content

Commit

Permalink
mogadm: improve error message on module load error
Browse files Browse the repository at this point in the history
On Thu, 6 Jun 2013 19:40:46 -0700, David Birdsong reported
issues to the mailing list about a load failure with mogadm.
Preserve the original $@ error message to hopefully give more
information about failure and aid in diagnosing the problem.
  • Loading branch information
Eric Wong authored and dormando committed Aug 8, 2013
1 parent 35c7b22 commit 2818247
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mogadm
Original file line number Diff line number Diff line change
Expand Up @@ -1230,9 +1230,11 @@ sub text {
######################################################################
cant_find_module => <<END,
Unable to find MogileFS::Admin module. Please ensure that you have the
module installed in a location in your search path. Or, add a search path
to mogadm:
Error loading modules: $@
Please ensure that you have the MogileFS::Admin and MogileFS::Client
modules and all necessary dependencies installed in a location in your
search path. Or, add a search path to mogadm:
mogadm --lib=/path/to/lib
Expand Down

0 comments on commit 2818247

Please sign in to comment.