Do not crash on compile errors
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon.pm
index 4c3d492..b7b6e06 100644 (file)
@@ -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) : ()
        });
 
This page took 0.010045 seconds and 4 git commands to generate.