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:
@@ -1 +1 @@
|
||||
7571
|
||||
7572
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user