From 20babd52716d125fc109236d293572656574fa40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sat, 17 Jun 2023 07:50:57 +0200 Subject: [PATCH] waforthc: Better error message when gcc not found Closes: #54 --- .github/workflows/build-master.yml | 1 - src/waforthc/waforthc.cpp | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-master.yml b/.github/workflows/build-master.yml index 6c15fd8..548e995 100644 --- a/.github/workflows/build-master.yml +++ b/.github/workflows/build-master.yml @@ -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 diff --git a/src/waforthc/waforthc.cpp b/src/waforthc/waforthc.cpp index f34938c..c4271be 100644 --- a/src/waforthc/waforthc.cpp +++ b/src/waforthc/waforthc.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -90,7 +91,7 @@ int runChild(const std::vector &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;