Skip to content
Snippets Groups Projects
Commit e29ba288 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Controller reports error codes.

parent 767ef0a2
Branches
Tags
No related merge requests found
......@@ -259,7 +259,13 @@ int execute(const char *action, char **argv, int argc, pid_t pid, int verbose,
printf("Compiling '%s'...\n",
zone->name);
}
if ((rc = system(cmd)) < 0) {
rc = system(cmd);
if (rc != 0) {
printf("error: Compilation failed "
"with return code %d.\n",
rc);
}
if (rc < 0) {
rc = 1;
}
free(cmd);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment