mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 10:13:51 +01:00
Merge pull request #169 from AustinHaigh-Hach/fix-typos
This commit is contained in:
commit
65ba76e493
@ -10561,7 +10561,7 @@ inline bool loadDocument(const std::string &path, nlohmann::json &document)
|
||||
}
|
||||
|
||||
// Parse schema
|
||||
#if VALIJSON_USE_EXCEPTION
|
||||
#if VALIJSON_USE_EXCEPTIONS
|
||||
try {
|
||||
document = nlohmann::json::parse(file);
|
||||
} catch (std::invalid_argument const& exception) {
|
||||
|
@ -20,7 +20,7 @@ inline bool loadDocument(const std::string &path, boost::json::value &document)
|
||||
}
|
||||
|
||||
// Parse schema
|
||||
#if VALIJSON_USE_EXCEPTION
|
||||
#if VALIJSON_USE_EXCEPTIONS
|
||||
try {
|
||||
#endif
|
||||
boost::json::error_code errorCode;
|
||||
@ -30,7 +30,7 @@ inline bool loadDocument(const std::string &path, boost::json::value &document)
|
||||
std::cerr << "Boost.JSON parsing error: " << errorCode.message();
|
||||
return false;
|
||||
}
|
||||
#if VALIJSON_USE_EXCEPTION
|
||||
#if VALIJSON_USE_EXCEPTIONS
|
||||
} catch (std::exception const & exception) {
|
||||
std::cerr << "Boost.JSON parsing exception: " << exception.what();
|
||||
return false;
|
||||
|
@ -20,7 +20,7 @@ inline bool loadDocument(const std::string &path, nlohmann::json &document)
|
||||
}
|
||||
|
||||
// Parse schema
|
||||
#if VALIJSON_USE_EXCEPTION
|
||||
#if VALIJSON_USE_EXCEPTIONS
|
||||
try {
|
||||
document = nlohmann::json::parse(file);
|
||||
} catch (std::invalid_argument const& exception) {
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include <valijson/utils/file_utils.hpp>
|
||||
#include <valijson/exceptions.hpp>
|
||||
|
||||
#if !VALIJSON_USE_EXCEPTION
|
||||
#if !VALIJSON_USE_EXCEPTIONS
|
||||
|
||||
namespace boost {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user