summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-10-26 23:07:30 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-10-26 23:07:30 +0200
commit208390143d1c86d7cdb2f7ef51a9cedbc858ccff (patch)
treef54c2845539e2edfb82631e0311e49d91c0337d1 /Bugzilla/Install
parent8073ec468255258f1d7ce72d6204636d8f2f8c45 (diff)
downloadbugzilla-208390143d1c86d7cdb2f7ef51a9cedbc858ccff.tar.gz
bugzilla-208390143d1c86d7cdb2f7ef51a9cedbc858ccff.tar.xz
Bug 607083: Improve the error message that install-module.pl prints when
you specify an invalid CPAN module. r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/Install')
-rw-r--r--Bugzilla/Install/CPAN.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/Install/CPAN.pm b/Bugzilla/Install/CPAN.pm
index 0ef003d69..20cdb5bbd 100644
--- a/Bugzilla/Install/CPAN.pm
+++ b/Bugzilla/Install/CPAN.pm
@@ -147,6 +147,9 @@ sub install_module {
}
my $module = CPAN::Shell->expand('Module', $name);
+ if (!$module) {
+ die install_string('no_such_module', { module => $name }) . "\n";
+ }
print install_string('install_module',
{ module => $name, version => $module->cpan_version }) . "\n";
if ($test) {