summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/rdoc/code_objects.rb
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2011-02-28 13:40:18 -0800
committerNick Lewis <nick@puppetlabs.com>2011-02-28 13:40:18 -0800
commit743e03930758d17ed35fc6b73f7c2c68d8212137 (patch)
tree27c0e4d6857001cad139a75eb0c69394c56e97ff /lib/puppet/util/rdoc/code_objects.rb
parentfb02430e3d3baaab74175236fb6dfc9e931b6a8e (diff)
downloadpuppet-743e03930758d17ed35fc6b73f7c2c68d8212137.tar.gz
puppet-743e03930758d17ed35fc6b73f7c2c68d8212137.tar.xz
puppet-743e03930758d17ed35fc6b73f7c2c68d8212137.zip
(#4922) Don't truncate remotely-sourced files on 404
We were 'handling' 404's on remote file content retrieval by returning nil rather than raising an exception. This caused no content to be written to the temporary file, but still appeared successful, so the destination file was overwritten, instead of preserved. Now we just handle 404 like any other error. Note that the root cause of these 404s seems to have been #4319, which has been fixed. However, in the event we do happen to get a 404 here, it's better not to have code to specifically handle it incorrectly. Paired-With: Max Martin Reviewed-By: Matt Robinson
Diffstat (limited to 'lib/puppet/util/rdoc/code_objects.rb')
0 files changed, 0 insertions, 0 deletions