More nothrow/formatting fixes (by John Colvin).

This commit is contained in:
Kiith-Sa 2012-12-27 21:50:09 +01:00
parent f33918748a
commit d6617f327f
2 changed files with 3 additions and 3 deletions

View file

@ -514,7 +514,7 @@ real constructReal(ref Node node)
}
catch(ConvException e)
{
throw new Exception("Unable to parse float value: " ~ value);
throw new Exception("Unable to parse float value: \"" ~ value ~ "\"");
}
return result;

View file

@ -40,7 +40,7 @@ class NodeException : YAMLException
* start = Start position of the node.
*/
this(string msg, Mark start, string file = __FILE__, int line = __LINE__)
@safe nothrow
@safe
{
super(msg ~ "\nNode at: " ~ start.toString(), file, line);
}
@ -98,7 +98,7 @@ package class YAMLContainer(T) if (!Node.allowed!T): YAMLObject
}
else
{
return format("YAMLContainer(", value_.toString(), ")");
return format("YAMLContainer(%s)", value_.toString());
}
}