mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-25 04:55:50 +00:00
Convert throws and catch alls (RIPD-1046)
This commit is contained in:
committed by
Nik Bougalis
parent
0633ef1ba1
commit
880f354b90
@@ -18,6 +18,7 @@
|
||||
//==============================================================================
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/basics/contract.h>
|
||||
#include <ripple/json/json_reader.h>
|
||||
#include <string>
|
||||
#include <cctype>
|
||||
@@ -949,7 +950,8 @@ std::istream& operator>> ( std::istream& sin, Value& root )
|
||||
bool ok = reader.parse (sin, root);
|
||||
|
||||
//JSON_ASSERT( ok );
|
||||
if (!ok) throw std::runtime_error (reader.getFormatedErrorMessages ());
|
||||
if (! ok)
|
||||
ripple::Throw<std::runtime_error> (reader.getFormatedErrorMessages ());
|
||||
|
||||
return sin;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user