Handle case where jobset has no defined errormsg for api/jobsets

This commit is contained in:
Kevin Quick 2020-01-11 17:01:44 -08:00
parent 5c0c7d52a0
commit de24771a8e
No known key found for this signature in database
GPG key ID: E6D7733599CC0A21

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 eq "" ? JSON::false : JSON::true) : JSON::false
};
}