[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 2/2] adhoc-revtuple-generator: Include $treename in some error messages



Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
 adhoc-revtuple-generator |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/adhoc-revtuple-generator b/adhoc-revtuple-generator
index edf5e97..4a2ec63 100755
--- a/adhoc-revtuple-generator
+++ b/adhoc-revtuple-generator
@@ -129,9 +129,9 @@ END
            m/^(\w+)\s(.*)$/ or die "$cmd: $_ ?";
            push @{ $r{$1} }, $2;
        }
-       die unless @{ $r{commit} } == 1;
-       die unless @{ $r{committer} } == 1;
-       die unless $r{committer}[0] =~ m/ (\d+)(?: [-+]\d{4})$/;
+       die "$treename -" unless @{ $r{commit} } == 1;
+       die "$treename -" unless @{ $r{committer} } == 1;
+       die "$treename -" unless $r{committer}[0] =~ m/ (\d+)(?: [-+]\d{4})$/;
        my $date= $1;
        return {
             Generator => "git_generator:$treename",
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.