diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-02-15 09:47:43 +0100 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-02-15 10:45:20 +0100 |
commit | d21a9aeab8c68f0b84c479ff143c02658f9eda7f (patch) | |
tree | d3b16a9d014d92b6aea1b719086cadc2cf8a623b /src/db | |
parent | 1447fc3674a376eef93873e1f18bedd633d870a2 (diff) |
Fix: Return script errors properly
This patch fixes error returning from the JobHandle::run() implementation.
Somehow, in the many rewrites, the error returning resulted in code that did not
differentiate between script run errors and scheduling errors.
This patch fixes this by making the JobHandle::run() method return
Result<Result<Vec<ArtifactPath>>>
whereas the outer error is the scheduling result and the inner error is the
script result.
The calling code was adapted accordingly.
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/db')
0 files changed, 0 insertions, 0 deletions