diff options
-rw-r--r-- | run_and_record/c++/main.cpp | 8 |
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 |