diff options
author | Josh Blum | 2013-07-28 15:42:26 -0700 |
---|---|---|
committer | Josh Blum | 2013-07-28 15:42:26 -0700 |
commit | b1815c83dcd92a04e5091a08c7d76b98ed73ee7a (patch) | |
tree | 578dfc914bf6b4f0141f005e184718ee160041b8 /lib | |
parent | e867fc098a73aadf52cace1020e8aae4c5d178ff (diff) | |
download | sandhi-b1815c83dcd92a04e5091a08c7d76b98ed73ee7a.tar.gz sandhi-b1815c83dcd92a04e5091a08c7d76b98ed73ee7a.tar.bz2 sandhi-b1815c83dcd92a04e5091a08c7d76b98ed73ee7a.zip |
gras: fixed typo on exceptions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/callable.cpp | 2 | ||||
-rw-r--r-- | lib/factory.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/callable.cpp b/lib/callable.cpp index 59ada7f..461eebd 100644 --- a/lib/callable.cpp +++ b/lib/callable.cpp @@ -67,5 +67,5 @@ CallableRegistryEntry::~CallableRegistryEntry(void) void CallableRegistryEntry::arg_check(const PMCList &args, const size_t nargs) { if (args.size() != nargs) throw std::runtime_error(str(boost::format( - "callable expected %u arguments but for %u") % nargs % args.size())); + "callable expected %u arguments but got %u") % nargs % args.size())); } diff --git a/lib/factory.cpp b/lib/factory.cpp index e07a2f2..6d9fe2c 100644 --- a/lib/factory.cpp +++ b/lib/factory.cpp @@ -23,7 +23,7 @@ FactoryRegistryEntry::~FactoryRegistryEntry(void) void FactoryRegistryEntry::arg_check(const PMCList &args, const size_t nargs) { if (args.size() != nargs) throw std::runtime_error(str(boost::format( - "factory expected %u arguments but for %u") % nargs % args.size())); + "factory expected %u arguments but got %u") % nargs % args.size())); } typedef std::map<std::string, boost::shared_ptr<FactoryRegistryEntry> > FactoryRegistryType; |