]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Throw exception on parse failure.
authorJesse F. Williamson <jfw@ibm.com>
Thu, 12 Feb 2026 19:20:47 +0000 (11:20 -0800)
committerJesse F. Williamson <jfw@ibm.com>
Thu, 12 Feb 2026 19:20:47 +0000 (11:20 -0800)
Signed-off-by: Jesse F. Williamson <jfw@ibm.com>
src/common/ceph_json.h

index 4d90d789d4b473972b70ac6c4fe5b729826874fa..ef7578a3d22cb6757309b779023da8ea962df6e5 100644 (file)
@@ -193,12 +193,10 @@ protected:
   // that we throw it out:
   static bool parse_json(std::string_view input, boost::json::value& data_out)
   {
-       std::error_code ec;
-
-       data_out = boost::json::parse(input, ec, boost::json::storage_ptr(), 
+       data_out = boost::json::parse(input, boost::json::storage_ptr(), 
                                     { .allow_invalid_utf8 = true });
 
-       return ec ? false : true;
+       return true;
   }
 
 public: