#211: perl Buil.PL gives confusing error message when Module::Build not installed -----------------------------------------+---------------------------------- Reporter: Kake | Owner: andrewb Type: defect | Status: assigned Priority: normal | Milestone: Component: openguides | Version: svn Severity: normal | Resolution: Keywords: hackfestsummer2007-reviewed | -----------------------------------------+---------------------------------- Comment (by andrewb):
my feeling is that it is trying to be helpful but it can't do so. {{{ eval { require Config::Tiny; }; die "Config::Tiny is required to configure this application.\n" if $@;
}}} Looks OK {{{ eval { require OpenGuides::Build; require OpenGuides::Config; }; die "???? is required to configure this application.\n" if $@; }}} isn't going to work as the problem is one of a number of modules called by OpenGuides::Build.
We could do {{{ die "£@" if $@; }}} I would be inclinded just do to {{{ use OpenGuides::Build; use OpenGuides::Config; }}} And make it truthful rather than friendly (and loosing information)