forked from lix-project/hydra
Handle case where jobset has no defined errormsg for api/jobsets
This commit is contained in:
parent
5c0c7d52a0
commit
de24771a8e
|
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue