Skip to content
  • Kevin Wolf's avatar
    job: Add error message for failing jobs · 1266c9b9
    Kevin Wolf authored
    
    
    So far we relied on job->ret and strerror() to produce an error message
    for failed jobs. Not surprisingly, this tends to result in completely
    useless messages.
    
    This adds a Job.error field that can contain an error string for a
    failing job, and a parameter to job_completed() that sets the field. As
    a default, if NULL is passed, we continue to use strerror(job->ret).
    
    All existing callers are changed to pass NULL. They can be improved in
    separate patches.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    Reviewed-by: default avatarJeff Cody <jcody@redhat.com>
    1266c9b9