diff --git a/lib/filesystem.js b/lib/filesystem.js index 85e1eb0..552055e 100644 --- a/lib/filesystem.js +++ b/lib/filesystem.js @@ -98,7 +98,7 @@ class Filesystem { insertLink (p) { const link = path.relative(fs.realpathSync(this.src), fs.realpathSync(p)) if (link.substr(0, 2) === '..') { - throw new Error(`${p}: file links out of the package`) + throw new Error(`${p}: file "${link}" links out of the package`) } const node = this.searchNodeFromPath(p) node.link = link