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

you specify an invalid CPAN module.
r=mkanat, a=mkanat (module owner)


git-svn-id: svn://10.0.0.236/trunk@261462 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org
2010-10-26 21:21:24 +00:00
parent 6453a5f6b5
commit 54bf2898e9
3 changed files with 5 additions and 1 deletions

View File

@@ -1 +1 @@
7571
7572

View File

@@ -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) {

View File

@@ -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.