X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/eada8c00da3cdab92c54b93ebe5028a5e54c4d7a..de8c468e16941c2541d7d73681c940f1a167506c:/src/surf/xml/surfxml_parseplatf.cpp diff --git a/src/surf/xml/surfxml_parseplatf.cpp b/src/surf/xml/surfxml_parseplatf.cpp index 9527602256..14ebf6db69 100644 --- a/src/surf/xml/surfxml_parseplatf.cpp +++ b/src/surf/xml/surfxml_parseplatf.cpp @@ -147,9 +147,10 @@ void parse_platform_file(const char *file) /* Run the script */ if (lua_pcall(L, 0, 0, 0)) { - XBT_ERROR("FATAL ERROR:\n %s: %s\n\n", "Lua call failed. Errormessage:", lua_tostring(L, -1)); - xbt_die("Lua call failed. See Log"); + XBT_ERROR("FATAL ERROR:\n %s: %s\n\n", "Lua call failed. Error message:", lua_tostring(L, -1)); + xbt_die("Lua call failed. See Log"); } + lua_close(L); } else #endif