From: Marius Gavrilescu Date: Tue, 6 May 2014 17:30:09 +0000 (+0300) Subject: Do not crash on compile errors X-Git-Tag: 5999.000_004~3 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=6555bf80813ccd73357cbd9efa06cbef33230189;p=gruntmaster-daemon.git Do not crash on compile errors --- diff --git a/lib/Gruntmaster/Daemon.pm b/lib/Gruntmaster/Daemon.pm index 4c3d492..b7b6e06 100644 --- a/lib/Gruntmaster/Daemon.pm +++ b/lib/Gruntmaster/Daemon.pm @@ -140,7 +140,7 @@ sub process{ $jobr->update({ result => $meta->{result}, result_text => $meta->{result_text}, - results => encode_json $meta->{results}, + ($meta->{results} ? (results => encode_json $meta->{results}) : ()), $errors ? (errors => $errors) : () });