Skip to content

Commit

Permalink
use M_ERROR with setJobStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
alaaeddineelamri committed Oct 31, 2022
1 parent 36ec762 commit f918b8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/dird/backup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -852,10 +852,11 @@ void UpdateBootstrapFile(JobControlRecord* jcr)
int status = CloseBpipe(bpipe);
if (status) {
BErrNo err;
Jmsg(jcr, M_FATAL, 0,
_("Piping went wrong when updating bootstrap file: "
Jmsg(jcr, M_ERROR, 0,
_("Error running program when updating bootstrap file: "
"%s: ERR=%s\n"),
fname, err.bstrerror(status));
jcr->setJobStatus(JS_ErrorTerminated);
}
} else {
fclose(fd);
Expand Down

0 comments on commit f918b8d

Please sign in to comment.