Don't assert, just throw.

This commit is contained in:
JoelKatz
2013-10-08 15:48:15 -07:00
parent 20e7cac743
commit 978c196c78

View File

@@ -418,10 +418,7 @@ void STAmount::canonicalize ()
}
if (mValue > cMaxNative)
{
assert (false);
throw std::runtime_error ("Native currency amount out of range");
}
return;
}