Skip to content

Commit 0b40e61

Browse files
kjetilkrubensworks
authored andcommitted
Add explicit file not found checking, thanks @RubenVerborgh
1 parent f8d467d commit 0b40e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/acl-checker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ACLChecker {
5454
const nearestACL = this.getPossibleACLs().reduce((prevACL, acl) => {
5555
return prevACL.catch(() => new Promise((resolve, reject) => {
5656
this.fetch(acl, (err, graph) => {
57-
if (err || !graph || !graph.length) {
57+
if (err && err.code !== 'ENOENT' || !graph || !graph.length) {
5858
isContainer = true
5959
reject(err)
6060
} else {

0 commit comments

Comments
 (0)