From 489c47bacf0c9d845b7633e949177e8267fc31db Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 7 Mar 2018 10:55:23 +0100 Subject: [PATCH] more informative error message --- src/smpi/internals/smpi_global.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/smpi/internals/smpi_global.cpp b/src/smpi/internals/smpi_global.cpp index a865e7b613..84f00e4418 100644 --- a/src/smpi/internals/smpi_global.cpp +++ b/src/smpi/internals/smpi_global.cpp @@ -493,7 +493,8 @@ int smpi_main(const char* executable, int argc, char *argv[]) + "_" + std::to_string(rank++) + ".so"; int fdin = open(executable_copy.c_str(), O_RDONLY); - xbt_assert(fdin >= 0, "Cannot read from %s", executable_copy.c_str()); + xbt_assert(fdin >= 0, "Cannot read from %s. Please make sure that the file exists and is executable.", + executable_copy.c_str()); int fdout = open(target_executable.c_str(), O_CREAT | O_RDWR, S_IRWXU); xbt_assert(fdout >= 0, "Cannot write into %s", target_executable.c_str()); -- 2.20.1