Commit c0bc49d7 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Cosmetic improvements in error reporting in the graphml reader

parent dd41507e
......@@ -99,12 +99,12 @@ class mutate_graph_impl : public mutate_graph
}
catch (bad_lexical_cast)
{
throw parse_error("invalid value \"" + value + "\" for key " +
name + " of type " + value_type);
throw parse_error("invalid value \"" + value + "\" for key \"" +
name + "\" of type \"" + value_type + "\"");
}
if (!type_found)
throw parse_error("unrecognized type \"" + value_type +
"\" for key " + name);
"\" for key " + name + "\"");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment