#211: perl Buil.PL gives confusing error message when Module::Build not installed ------------------------+--------------------------------------------------- Reporter: Kake | Owner: Nobody Type: defect | Status: new Priority: normal | Milestone: Component: openguides | Version: svn Severity: normal | Keywords: ------------------------+--------------------------------------------------- If you have Config::Tiny installed but don't have one of Module::Build and Class::Accessor, the error message you get from 'perl Build.PL' is confusing:
"Config::Tiny is required to configure this application."
#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: | ------------------------+--------------------------------------------------- Changes (by andrewb):
* status: new => assigned * owner: Nobody => andrewb
#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 | -----------------------------------------+---------------------------------- Changes (by Kake):
* keywords: => hackfestsummer2007-reviewed
#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)
#211: perl Buil.PL gives confusing error message when Module::Build not installed -----------------------------------------+---------------------------------- Reporter: Kake | Owner: andrewb Type: defect | Status: closed Priority: normal | Milestone: Component: openguides | Version: svn Severity: normal | Resolution: fixed Keywords: hackfestsummer2007-reviewed | -----------------------------------------+---------------------------------- Changes (by dom):
* status: assigned => closed * resolution: => fixed
Comment:
(In [1058]) Clarify error message with missing build deps (patch from andrewb) (fixes #211)
openguides-tickets@lists.openguides.org