diff options
Diffstat (limited to 'odb/validator.cxx')
-rw-r--r-- | odb/validator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/odb/validator.cxx b/odb/validator.cxx index 90e6b7e..c12bff0 100644 --- a/odb/validator.cxx +++ b/odb/validator.cxx @@ -629,7 +629,7 @@ namespace }; } -bool validator:: +void validator:: validate (options const& ops, semantics::unit& u, semantics::path const&, @@ -680,5 +680,6 @@ validate (options const& ops, unit.dispatch (u); } - return valid; + if (!valid) + throw failed (); } |