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/branches/BUGZILLA-4_0-BRANCH@261462 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org
2010-10-26 21:21:24 +00:00
parent 77ab12635e
commit 73080f921d
3 changed files with 5 additions and 1 deletions

View File

@@ -1 +1 @@
7458
7459

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

@@ -150,6 +150,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##.",
ppm_repo_add => <<EOT,
***********************************************************************
* Note For Windows Users *