mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Don't assert, just throw.
This commit is contained in:
@@ -418,10 +418,7 @@ void STAmount::canonicalize ()
|
||||
}
|
||||
|
||||
if (mValue > cMaxNative)
|
||||
{
|
||||
assert (false);
|
||||
throw std::runtime_error ("Native currency amount out of range");
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user