Select Git revision
job_error.c
-
Julian Rother authoredJulian Rother authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
job_error.c 291 B
#include <stdio.h>
#include <stdlib.h>
#include "../util.h"
int jobid;
void job_failed(char *msg, ...)
{
va_list ap;
va_start(ap, msg);
ping_job(jobid, "failed", "{\"reason\": \"%s\", \"log\": \"%s\"}",
jescape(vmprintf(msg, ap)), jescape(get_avlogbuf()));
va_end(ap);
exit(2);
}