Sfoglia il codice sorgente

refactor: also log on success

Sam Jaffe 3 settimane fa
parent
commit
e5a4bc7ef3
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/validate.cxx

+ 1 - 0
src/validate.cxx

@@ -111,6 +111,7 @@ int main(int argc, char const * const * argv) {
   bool compact_error = !args.verbose && !args.format_as_explaination;
   if (jvalidate::Validator(schema, {.only_return_results_with_error = compact_error})
           .validate(jobject, &result)) {
+    std::cout << result << "\n";
     return EXIT_SUCCESS;
   }