More nothrow/formatting fixes (by John Colvin).
This commit is contained in:
parent
f33918748a
commit
d6617f327f
|
@ -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;
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue