```ruby
raise Puppet::Error("TEMP file '#{tmpfile_name}' not found.") unless File.exists?(tmpfile_name)