Skip to content

Commit

Permalink
Merge pull request #285 from DavidS/fixup
Browse files Browse the repository at this point in the history
(PDK-459) Improve error message when the generation target exists
  • Loading branch information
rodjek committed Sep 5, 2017
2 parents 1d6e2bc + d4f402a commit 32eee98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pdk/generators/puppet_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def object_type
def run
[target_object_path, target_spec_path].each do |target_file|
if File.exist?(target_file)
raise PDK::CLI::FatalError, _("Unable to generate class; '%{file}' already exists.") % { file: target_file }
raise PDK::CLI::FatalError, _("Unable to generate %{object_type}; '%{file}' already exists.") % { file: target_file, object_type: object_type }
end
end

Expand Down

0 comments on commit 32eee98

Please sign in to comment.