diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-20 01:21:58 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-20 01:21:58 +0200 |
commit | 049ae4ae5d0367485910064f62b1baf38fdaad04 (patch) | |
tree | 1be645e4d0d5fdf6b1bb81aea55f07cabea0e361 /Bugzilla/Install/DB.pm | |
parent | 3944a53b67f20592b960f03c65d9ff2b490f58fb (diff) | |
download | bugzilla-049ae4ae5d0367485910064f62b1baf38fdaad04.tar.gz bugzilla-049ae4ae5d0367485910064f62b1baf38fdaad04.tar.xz |
Bug 560284: Make all errors that checksetup.pl throws be red
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'Bugzilla/Install/DB.pm')
-rw-r--r-- | Bugzilla/Install/DB.pm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index 81372da71..aa71c7d0a 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -3080,11 +3080,11 @@ sub _check_content_length { WHERE CHAR_LENGTH($field_name) > ?", {Columns=>[1,2]}, $max_length) }; if (scalar keys %contents) { - print install_string('install_data_too_long', - { column => $field_name, - id_column => $id_field, - table => $table_name, - max_length => $max_length }); + my $error = install_string('install_data_too_long', + { column => $field_name, + id_column => $id_field, + table => $table_name, + max_length => $max_length }); foreach my $id (keys %contents) { my $string = $contents{$id}; # Don't dump the whole string--it could be 16MB. @@ -3092,9 +3092,9 @@ sub _check_content_length { $string = substr($string, 0, 30) . "..." . substr($string, -30) . "\n"; } - print "$id: $string\n"; + $error .= "$id: $string\n"; } - exit 3; + die $error; } } |