summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Schmitt <david@dasz.at>2010-05-18 11:33:28 +0200
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commitb3aa3ecdc5d164328d7193d9158d9dee53df4aec (patch)
treedad3c73ed716360e05e8fe29f8b02ffc76c9ed37 /lib
parentd67f60fc164fce2ec53c0cde7ea9d9dbf665455a (diff)
downloadpuppet-b3aa3ecdc5d164328d7193d9158d9dee53df4aec.tar.gz
puppet-b3aa3ecdc5d164328d7193d9158d9dee53df4aec.tar.xz
puppet-b3aa3ecdc5d164328d7193d9158d9dee53df4aec.zip
Improve error message
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/module.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/module.rb b/lib/puppet/module.rb
index e598a8e88..38f3ec68a 100644
--- a/lib/puppet/module.rb
+++ b/lib/puppet/module.rb
@@ -211,6 +211,6 @@ class Puppet::Module
end
def assert_validity
- raise InvalidName, "Invalid module name; module names must be alphanumeric (plus '-')" unless name =~ /^[-\w]+$/
+ raise InvalidName, "Invalid module name; module names must be alphanumeric (plus '-'), not '%s'" % name unless name =~ /^[-\w]+$/
end
end