From ce625eb04489092f7e5b59269c0bd50cd0750d7a Mon Sep 17 00:00:00 2001 From: espie Date: Wed, 1 May 2013 22:39:24 +0000 Subject: [PATCH] oops, if the error is dire enough, there's no info. --- infrastructure/lib/DPB/Engine.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/lib/DPB/Engine.pm b/infrastructure/lib/DPB/Engine.pm index eb5fc12263c..f2209770107 100644 --- a/infrastructure/lib/DPB/Engine.pm +++ b/infrastructure/lib/DPB/Engine.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Engine.pm,v 1.76 2013/04/30 10:22:36 espie Exp $ +# $OpenBSD: Engine.pm,v 1.77 2013/05/01 22:39:24 espie Exp $ # # Copyright (c) 2010 Marc Espie # @@ -495,7 +495,7 @@ sub errors_string if (defined $e->{host} && !$e->{host}->is_localhost) { $s .= "(".$e->{host}->name.")"; } - if ($e->{info}->has_property('nojunk')) { + if (defined $e->{info} && $e->{info}->has_property('nojunk')) { $s .= '!'; } push(@l, $s);