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:
@@ -1 +1 @@
|
||||
7458
|
||||
7459
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user