diff --git a/lemon/graph_to_eps.h b/lemon/graph_to_eps.h --- a/lemon/graph_to_eps.h +++ b/lemon/graph_to_eps.h @@ -1170,7 +1170,7 @@ std::ostream* os = new std::ofstream(file_name); if (!(*os)) { delete os; - throw IoError(file_name, "Cannot write file"); + throw IoError("Cannot write file", file_name); } return GraphToEps > (DefaultGraphToEpsTraits(g,*os,true)); @@ -1191,7 +1191,7 @@ std::ostream* os = new std::ofstream(file_name.c_str()); if (!(*os)) { delete os; - throw IoError(file_name, "Cannot write file"); + throw IoError("Cannot write file", file_name); } return GraphToEps > (DefaultGraphToEpsTraits(g,*os,true));