lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 2a0823a 8/9: Throw an exception if schema val


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 2a0823a 8/9: Throw an exception if schema validation fails
Date: Thu, 12 Jul 2018 13:12:58 -0400 (EDT)

branch: master
commit 2a0823ae702794a64046ce02cf350384cbaeab02
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Throw an exception if schema validation fails
    
    It's not clear why this was ever just a warning.
---
 multiple_cell_document.cpp | 2 +-
 single_cell_document.cpp   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/multiple_cell_document.cpp b/multiple_cell_document.cpp
index 07e719d..96ad1b4 100644
--- a/multiple_cell_document.cpp
+++ b/multiple_cell_document.cpp
@@ -423,7 +423,7 @@ void multiple_cell_document::validate_with_xsd_schema
     xml::error_messages errors;
     if(!schema.validate(cell_sorter().apply(xml), errors))
         {
-        warning()
+        alarum()
             << "Validation with schema '"
             << xsd
             << "' failed.\n\n"
diff --git a/single_cell_document.cpp b/single_cell_document.cpp
index c7361a6..fab5dce 100644
--- a/single_cell_document.cpp
+++ b/single_cell_document.cpp
@@ -174,7 +174,7 @@ void single_cell_document::validate_with_xsd_schema
     xml::error_messages errors;
     if(!schema.validate(cell_sorter().apply(xml), errors))
         {
-        warning()
+        alarum()
             << "Validation with schema '"
             << xsd
             << "' failed.\n\n"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]