Merge pull request #702 from kquick/fix_api_push

Handle case where jobset has no defined errormsg for api/jobsets
This commit is contained in:
Eelco Dolstra 2020-04-01 13:09:05 +02:00 committed by GitHub
commit 2d092a6fbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,7 +88,7 @@ sub jobsetToHash {
triggertime => $jobset->triggertime,
fetcherrormsg => $jobset->fetcherrormsg,
errortime => $jobset->errortime,
haserrormsg => $jobset->errormsg eq "" ? JSON::false : JSON::true
haserrormsg => defined($jobset->errormsg) && $jobset->errormsg ne "" ? JSON::true : JSON::false
};
}