summaryrefslogtreecommitdiffstats
path: root/lib/puppet/type/file/source.rb
diff options
context:
space:
mode:
authorJacob Helwig <jacob@puppetlabs.com>2011-08-02 10:34:06 -0700
committerJacob Helwig <jacob@puppetlabs.com>2011-08-19 13:52:58 -0700
commit8c889187a4699f8b797e7a960343558fd2cb8e34 (patch)
treee3b220a0db485ed58dcc63cd5fbac00f3be81f45 /lib/puppet/type/file/source.rb
parent2efaa855e9ef9079342ba041c103832313696582 (diff)
downloadpuppet-8c889187a4699f8b797e7a960343558fd2cb8e34.tar.gz
puppet-8c889187a4699f8b797e7a960343558fd2cb8e34.tar.xz
puppet-8c889187a4699f8b797e7a960343558fd2cb8e34.zip
Clarify logic and error messages when initializing Puppet::FileBucket::File
Rather than stating the logic as 'if !thing', the two checks done when initializing a new Puppet::FileBucket::File are now phrased as 'unless thing', which should lessen the likelihood of overlooking the '!'. We also now provide a reason for the ArgumentError being raised, which should help users of Puppet::FileBucket::File quickly figure out what is the problem when these exceptions are raised. In addition to updating the tests to look for these new error messages, we update the existing tests to specify which type of exception, and what message it should have, when something is raised. Reviewed-by: Nick Lewis <nick@puppetlabs.com> (cherry picked from commit b4cacfd8f95577c514999b4dd6bcb7ad57e37207)
Diffstat (limited to 'lib/puppet/type/file/source.rb')
0 files changed, 0 insertions, 0 deletions