diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-05 14:27:58 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-05 14:27:58 -0500 |
commit | 67ce33430c1f37f0fa7da62e5bd055c5a00b614d (patch) | |
tree | 3357a0a2fd100f8dbf65e01ae1272770852c3e23 /src/item.cc | |
parent | 15555d497f56e4b4d39e9a14f74b2c82cce52b90 (diff) | |
parent | 09ace752d604d5afce698f7cc240e1a83cee934d (diff) | |
download | fork-ledger-67ce33430c1f37f0fa7da62e5bd055c5a00b614d.tar.gz fork-ledger-67ce33430c1f37f0fa7da62e5bd055c5a00b614d.tar.bz2 fork-ledger-67ce33430c1f37f0fa7da62e5bd055c5a00b614d.zip |
Merge branch 'next'
Diffstat (limited to 'src/item.cc')
-rw-r--r-- | src/item.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/item.cc b/src/item.cc index acef2e44..f60db226 100644 --- a/src/item.cc +++ b/src/item.cc @@ -212,23 +212,23 @@ namespace { else if (args[0].is_mask()) return item.has_tag(args[0].as_mask()); else - throw_(std::logic_error, - _("Expected string for argument 1, but received %1") + throw_(std::runtime_error, + _("Expected string or mask for argument 1, but received %1") << args[0].label()); } else if (args.size() == 2) { if (args[0].is_mask() && args[1].is_mask()) return item.has_tag(args[0].to_mask(), args[1].to_mask()); else - throw_(std::logic_error, + throw_(std::runtime_error, _("Expected masks for arguments 1 and 2, but received %1 and %2") << args[0].label() << args[1].label()); } else if (args.size() == 0) { - throw_(std::logic_error, _("Too few arguments to function")); + throw_(std::runtime_error, _("Too few arguments to function")); } else { - throw_(std::logic_error, _("Too many arguments to function")); + throw_(std::runtime_error, _("Too many arguments to function")); } return false; } |