summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-10-01 17:31:17 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-10-01 17:31:17 +0200
commitb644689e018f5139c2c7d8d782f086120d07dd18 (patch)
tree8ddcae541342904e92131fb03fd8dfc82b982390
parent237a2116fab0c5c5b35a8a66b6321dedb5dd0e4e (diff)
Changed error message to give some more info
-rw-r--r--run_and_record/c++/main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/run_and_record/c++/main.cpp b/run_and_record/c++/main.cpp
index af92d0e..81ca570 100644
--- a/run_and_record/c++/main.cpp
+++ b/run_and_record/c++/main.cpp
@@ -9,14 +9,16 @@ namespace kel {
namespace sch {
using namespace saw::schema;
-using RarArgsStruct = Struct<
+using RarConfig = Struct<
>;
+// Additionally record the files which are needed to run the simulation
using RarArgsTuple = Tuple<
+ Array<String>
>;
using RarArgs = Args<
- RarArgsStruct,
+ RarConfig,
RarArgsTuple
>;
@@ -35,7 +37,7 @@ saw::error_or<void> run_program(int argc, char** argv){
if(pid == 0){
execvp(argv[0], argv);
- return saw::make_error<saw::err::critical>("ExecVP failed.");
+ return saw::make_error<saw::err::critical>("execvp failed. Usually the path doesn't exist or permissions are wrong.");
}
// Every other case