[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"
- [lmi-commits] [lmi] master updated (f5c7c0b -> 34bd9e1), Greg Chicares, 2018/07/12
- [lmi-commits] [lmi] master 8c11196 1/9: Work around a compiler warning, Greg Chicares, 2018/07/12
- [lmi-commits] [lmi] master 899a163 3/9: Improve documentation, Greg Chicares, 2018/07/12
- [lmi-commits] [lmi] master 8a68504 4/9: Call Reconcile() when reading all external input files, Greg Chicares, 2018/07/12
- [lmi-commits] [lmi] master c28ef2c 5/9: Demonstrate substitutability of alert streams, Greg Chicares, 2018/07/12
- [lmi-commits] [lmi] master 34bd9e1 9/9: Designate release candidate 20180712T1708Z, Greg Chicares, 2018/07/12
- [lmi-commits] [lmi] master ed63bee 2/9: Enable GUI test to preserve 'configurable_settings.xml', Greg Chicares, 2018/07/12
- [lmi-commits] [lmi] master 2a0823a 8/9: Throw an exception if schema validation fails,
Greg Chicares <=
- [lmi-commits] [lmi] master d28f769 7/9: Improve certain error messages, Greg Chicares, 2018/07/12
- [lmi-commits] [lmi] master 7aaa73e 6/9: Validate external input more stringently, Greg Chicares, 2018/07/12