Skip to content

Commit de0621a

Browse files
committed
Oops. fix symlink existence check
1 parent 6d2d1da commit de0621a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/link.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,9 @@ function linkRequirements() {
4343
try {
4444
linkDest = fse.readlinkSync(`./${file}`);
4545
} catch (e) {
46-
if (linkDest !== `${requirementsDir}/${file}`) {
47-
const errorMessage = `Unable to link dependency '${file}' ` +
48-
'because a file by the same name exists in this service';
49-
throw new Error(errorMessage);
50-
}
5146
}
47+
if (linkDest !== `${requirementsDir}/${file}`)
48+
throw exception;
5249
}
5350
});
5451
}

0 commit comments

Comments
 (0)