lib/pdk/generate/puppet_object.rb in pdk-1.6.0 vs lib/pdk/generate/puppet_object.rb in pdk-1.6.1

- old
+ new

@@ -222,9 +222,11 @@ else raise PDK::CLI::FatalError, _('Unable to find the %{type} template in %{url}.') % { type: object_type, url: template[:url] } end end end + rescue ArgumentError => e + raise PDK::CLI::ExitWithError, e end # Provides the possible template directory locations in the order in # which they should be searched for a valid template. #