core: Add information on which condition failed to job skipped format string
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 20 Aug 2021 10:02:25 +0000 (11:02 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 26 Aug 2021 09:24:13 +0000 (10:24 +0100)
commitc97bef458b6e59079c9613ec755c1c6513c1c655
tree1aea45103d70b2439233453fa58b9c09f7dc30f5
parentc918b70a4d7b64070d9c5a79d757e67ca8d211a6
core: Add information on which condition failed to job skipped format string

When a job is skipped, it's useful to know exactly which condition failed so
let's add this information to the error message. Because we now return an
allocated string from job_done_message_format(), make sure we strdup() the
other formats as well so the caller can safely free the string returned by
job_done_message_format().
src/core/job.c