mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-04 19:25:51 +00:00
Verify that returned RPC codes are known
This commit is contained in:
@@ -122,6 +122,7 @@ public:
|
||||
ErrorInfo const& get (error_code_i code) const
|
||||
{
|
||||
Map::const_iterator const iter (m_map.find (code));
|
||||
assert (iter != m_map.end());
|
||||
if (iter != m_map.end())
|
||||
return iter->second;
|
||||
return m_unknown;
|
||||
|
||||
Reference in New Issue
Block a user