summaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2016-01-14 03:59:48 (GMT)
committerEric Wong <normalperson@yhbt.net>2016-03-15 01:35:39 (GMT)
commit62335bbbc747c96636b5ce9917b156304c732eaf (patch)
tree8c1661a75eabad5898349b6f3301cff3e37a724d /perl
parente4e5dd94e6eea4b50d8baed8b6b8cc50f6c8eae4 (diff)
downloadgit-62335bbbc747c96636b5ce9917b156304c732eaf.zip
git-62335bbbc747c96636b5ce9917b156304c732eaf.tar.gz
git-62335bbbc747c96636b5ce9917b156304c732eaf.tar.bz2
git-svn: shorten glob error message
Error messages should attempt to fit within the confines of an 80-column terminal to avoid compatibility and accessibility problems. Furthermore the word "directories" can be misleading when used in the context of git refnames. Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'perl')
-rw-r--r--perl/Git/SVN/GlobSpec.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl/Git/SVN/GlobSpec.pm b/perl/Git/SVN/GlobSpec.pm
index 4775026..a0a8d17 100644
--- a/perl/Git/SVN/GlobSpec.pm
+++ b/perl/Git/SVN/GlobSpec.pm
@@ -8,8 +8,8 @@ sub new {
$re =~ s!/+$!!g; # no need for trailing slashes
my (@left, @right, @patterns);
my $state = "left";
- my $die_msg = "Only one set of wildcard directories " .
- "(e.g. '*' or '*/*/*') is supported: '$glob'\n";
+ my $die_msg = "Only one set of wildcards " .
+ "(e.g. '*' or '*/*/*') is supported: $glob\n";
for my $part (split(m|/|, $glob)) {
if ($pattern_ok && $part =~ /[{}]/ &&
$part !~ /^\{[^{}]+\}/) {