From b2e0771472af0a8ef65229aae8e8aae3e8186088 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 23 May 2013 17:46:47 +0000 Subject: rpmlint check: Add more infos in error message --- lib/Youri/Submit/Check/Rpmlint.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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) . ')$'; -- cgit v1.2.1