waforthc: Better error message when gcc not found

Closes: #54
This commit is contained in:
Remko Tronçon 2023-06-17 07:50:57 +02:00
parent 7ccc11dd41
commit 20babd5271
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,6 @@ jobs:
- run: |
mkdir pages
tar xf artifact.tar -C pages
- run: ls -R pages
- name: aws s3 sync
run: |
aws configure set region eu-central-1

View file

@ -1,4 +1,5 @@
#include <algorithm>
#include <cerrno>
#include <cstdlib>
#include <cstring>
#include <filesystem>
@ -90,7 +91,7 @@ int runChild(const std::vector<std::string> &cmd) {
auto pid = fork();
if (pid == 0) {
if (execvp(argsp[0], (char **)&argsp[0]) == -1) {
std::cerr << "execvp() error" << std::endl;
std::cerr << "error executing '" << cmd[0] << ": " << std::strerror(errno) << " (" << errno << ")" << std::endl;
return -1;
}
return 0;