From 0b21596e466d34e9085ff5f26c254e62478ff78b Mon Sep 17 00:00:00 2001 From: Gert Van Hoey Date: Mon, 7 Aug 2017 13:20:25 +0200 Subject: [PATCH] Fix indentation (TAB instead of spaces) --- app/json-schema-validate.cpp | 2 +- src/json-validator.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/json-schema-validate.cpp b/app/json-schema-validate.cpp index 1cfb9af..066632b 100644 --- a/app/json-schema-validate.cpp +++ b/app/json-schema-validate.cpp @@ -93,7 +93,7 @@ int main(int argc, char *argv[]) json document; try { - std::cin >> document; + std::cin >> document; validator.validate(document); } catch (std::exception &e) { std::cerr << "schema validation failed\n"; diff --git a/src/json-validator.cpp b/src/json-validator.cpp index ca04e0b..8e8ffae 100644 --- a/src/json-validator.cpp +++ b/src/json-validator.cpp @@ -344,7 +344,7 @@ void json_validator::validate(const json &instance, const json &schema_, const s try { validate(instance, attr.value(), name); ok = false; - } catch (std::exception &) { + } catch (std::exception &) { ok = true; } if (!ok)