cacache
Advanced tools
Comparing version 10.0.2 to 10.0.3
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="10.0.3"></a> | ||
## [10.0.3](https://github.com/zkat/cacache/compare/v10.0.2...v10.0.3) (2018-02-16) | ||
### Bug Fixes | ||
* **content:** rethrow aggregate errors as ENOENT ([a081e06](https://github.com/zkat/cacache/commit/a081e06)) | ||
<a name="10.0.2"></a> | ||
@@ -7,0 +17,0 @@ ## [10.0.2](https://github.com/zkat/cacache/compare/v10.0.1...v10.0.2) (2018-01-07) |
@@ -98,2 +98,12 @@ 'use strict' | ||
})) | ||
.catch(err => { | ||
if ([].some.call(err, e => e.code === 'ENOENT')) { | ||
throw Object.assign( | ||
new Error('No matching content found for ' + sri.toString()), | ||
{code: 'ENOENT'} | ||
) | ||
} else { | ||
throw err[0] | ||
} | ||
}) | ||
} | ||
@@ -100,0 +110,0 @@ } |
{ | ||
"name": "cacache", | ||
"version": "10.0.2", | ||
"version": "10.0.3", | ||
"cache-version": { | ||
@@ -5,0 +5,0 @@ "content": "2", |
101928
1278