From b644689e018f5139c2c7d8d782f086120d07dd18 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 1 Oct 2025 17:31:17 +0200 Subject: Changed error message to give some more info --- run_and_record/c++/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'run_and_record') 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 >; using RarArgs = Args< - RarArgsStruct, + RarConfig, RarArgsTuple >; @@ -35,7 +37,7 @@ saw::error_or run_program(int argc, char** argv){ if(pid == 0){ execvp(argv[0], argv); - return saw::make_error("ExecVP failed."); + return saw::make_error("execvp failed. Usually the path doesn't exist or permissions are wrong."); } // Every other case -- cgit v1.2.3