Do not crash on compile errors
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon.pm
index 6cc6431d050cd858ee8cad47a2c6528f6f6973c7..b7b6e0616a5192b7076412bed2c54f17da547d53 100644 (file)
@@ -4,7 +4,7 @@ use 5.014000;
 use strict;
 use warnings;
 
-our $VERSION = '5999.000_002';
+our $VERSION = '5999.000_003';
 
 use Gruntmaster::Daemon::Constants qw/ERR/;
 use Gruntmaster::Daemon::Format qw/prepare_files/;
@@ -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.010561 seconds and 4 git commands to generate.