diff options
-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; |