Subject: | more user friendly error message |
I sometime forgot to quote the $VERSION... The code likes 'our
$VERSION=0.08'.
Please print more user friendly message.
follow is a patch.
--- lib/ShipIt/ProjectType/Perl.pm.org 2007-12-06 18:27:44.000000000 -
0800
+++ lib/ShipIt/ProjectType/Perl.pm 2007-12-06 18:28:20.000000000 -
0800
@@ -63,7 +63,7 @@
while (<$fh>) {
return $2 if /\$VERSION\s*=\s*([\'\"])(.+?)\1/;
}
- die "No \$VERSION found in file $file\n";
+ die "No \$VERSION found in file $file\nMaybe, you forgot to quote
\$VERSION?";
}
sub update_version {