Commit 059753ac authored by Phil Dibowitz's avatar Phil Dibowitz
Browse files

Merge pull request #1319 from jaymzh/fix-cache-bugs-10

[10-stable] Fix crashes on invalid cache files
parents 3135ba13 9178a817
......@@ -3,6 +3,7 @@
## Unreleased
* Service Provider for MacOSX now supports `enable` and `disable`
* Chef now gracefully handles corrupted cache files.
## Last Release: 10.30.4 (02/18/2014)
......
......@@ -7,3 +7,4 @@ Example Contribution:
# Chef Client 10.x Contributions:
* **jaymzh**: Service Provider for MacOSX now supports `enable` and `disable`
* **jaymzh**: Chef now gracefully handles corrupted cache files.
......@@ -149,7 +149,7 @@ class Chef
def fetch(key)
@moneta.fetch(key)
rescue ArgumentError => e
rescue ArgumentError, TypeError => e
Log.warn "Error loading cached checksum for key #{key.inspect}"
Log.warn(e)
repair_checksum_cache
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment