From: Martin Quinson Date: Wed, 7 Mar 2018 09:55:23 +0000 (+0100) Subject: more informative error message X-Git-Tag: v3.19~140 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/489c47bacf0c9d845b7633e949177e8267fc31db more informative error message --- 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());