aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-23 17:46:47 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-23 17:46:47 +0000
commitb2e0771472af0a8ef65229aae8e8aae3e8186088 (patch)
tree701c73e0f4fbec74f6eebe0ad036d5c0530fd9a7
parent060289007e60f2a0b7e547ff42bd2734be46deaf (diff)
downloadmga-youri-submit-b2e0771472af0a8ef65229aae8e8aae3e8186088.tar
mga-youri-submit-b2e0771472af0a8ef65229aae8e8aae3e8186088.tar.gz
mga-youri-submit-b2e0771472af0a8ef65229aae8e8aae3e8186088.tar.bz2
mga-youri-submit-b2e0771472af0a8ef65229aae8e8aae3e8186088.tar.xz
mga-youri-submit-b2e0771472af0a8ef65229aae8e8aae3e8186088.zip
rpmlint check: Add more infos in error message
-rw-r--r--lib/Youri/Submit/Check/Rpmlint.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Youri/Submit/Check/Rpmlint.pm b/lib/Youri/Submit/Check/Rpmlint.pm
index f56ba0e..293f18e 100644
--- a/lib/Youri/Submit/Check/Rpmlint.pm
+++ b/lib/Youri/Submit/Check/Rpmlint.pm
@@ -65,8 +65,8 @@ sub run {
my @errors;
my $results = $self->{opt}->('results', $_target);
- croak "no results to check" unless $results;
- croak "fatal should be an arrayref" unless ref $results eq 'ARRAY';
+ croak "rpmlint check: no results to check" unless $results;
+ croak "rpmlint check: fatal should be an arrayref" unless ref $results eq 'ARRAY';
$self->{_config} = $self->{opt}->('config', $_target);
$self->{_path} = $self->{opt}->('path', $_target);
$self->{_pattern} = '^(?:' . join('|', @$results) . ')$';