Commit 20839014 authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

Bug 607083: Improve the error message that install-module.pl prints when

you specify an invalid CPAN module. r=mkanat, a=mkanat (module owner)
parent 8073ec46
......@@ -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) {
......
......@@ -311,6 +311,7 @@ EOT
module_not_found => "not found",
module_ok => 'ok',
module_unknown_version => "found unknown version",
no_such_module => "There is no Perl module on CPAN named ##module##.",
mysql_innodb_disabled => <<'END',
InnoDB is disabled in your MySQL installation.
Bugzilla requires InnoDB to be enabled.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment