diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/value.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/value.cc b/src/value.cc index 75d09441..755c18bb 100644 --- a/src/value.cc +++ b/src/value.cc @@ -93,6 +93,13 @@ value_t::operator bool() const return as_balance(); case STRING: return ! as_string().empty(); + case MASK: { + std::ostringstream out; + out << *this; + throw_(value_error, + _("Cannot determine truth of %1 (did you mean 'account =~ %2'?)") + << label() << out.str()); + } case SEQUENCE: if (! as_sequence().empty()) { foreach (const value_t& value, as_sequence()) { |