Update haserrormsg logic implementation.

This commit is contained in:
Kevin Quick 2020-01-20 10:40:33 -08:00
parent de24771a8e
commit cdd9d6e071
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 => defined($jobset->errormsg) ? ($jobset->errormsg eq "" ? JSON::false : JSON::true) : JSON::false
haserrormsg => defined($jobset->errormsg) && $jobset->errormsg ne "" ? JSON::true : JSON::false
};
}