lib/pdk/module/templatedir.rb in pdk-0.5.0 vs lib/pdk/module/templatedir.rb in pdk-0.6.0
- old
+ new
@@ -176,10 +176,10 @@
unless File.directory?(@path)
raise ArgumentError, _("The specified template '%{path}' is not a directory") % { path: @path }
end
unless File.directory?(@moduleroot_dir) # rubocop:disable Style/GuardClause
- raise ArgumentError, _("The template at '%{path}' does not contain a moduleroot directory") % { path: @path }
+ raise ArgumentError, _("The template at '%{path}' does not contain a 'moduleroot/' directory") % { path: @path }
end
end
# Get a list of template files in the template directory.
#