From 6555bf80813ccd73357cbd9efa06cbef33230189 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Tue, 6 May 2014 20:30:09 +0300 Subject: [PATCH] Do not crash on compile errors --- lib/Gruntmaster/Daemon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) : () }); -- 2.39.2