Skip to content

Commit

Permalink
Update haserrormsg logic implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
kquick committed Jan 20, 2020
1 parent de24771 commit cdd9d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Hydra/Controller/API.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}

Expand Down

0 comments on commit cdd9d6e

Please sign in to comment.