]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/xml/surfxml_sax_cb.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
do not downcast activities to the wrong type just to get their name
[simgrid.git] / src / surf / xml / surfxml_sax_cb.cpp
index 355cba0bd497d002ebd27d3b13f2dff284e0c0a2..06db5168d0335befc8564a2ce0d2ceea7f1dcba0 100644 (file)
@@ -1001,7 +1001,7 @@ void surf_parse_open(const std::string& file)
 
   surf_file_to_parse = surf_fopen(file, "r");
   if (surf_file_to_parse == nullptr)
-    throw std::invalid_argument(std::string("Unable to open ')") + file + "' from '" + simgrid::xbt::Path().get_name() +
+    throw std::invalid_argument(std::string("Unable to open '") + file + "' from '" + simgrid::xbt::Path().get_name() +
                                 "'. Does this file exist?");
   surf_input_buffer = surf_parse__create_buffer(surf_file_to_parse, YY_BUF_SIZE);
   surf_parse__switch_to_buffer(surf_input_buffer);