We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94cb8bd commit 56e60b6Copy full SHA for 56e60b6
lib/filesystem.js
@@ -139,6 +139,11 @@ class Filesystem {
139
followLinks = typeof followLinks === 'undefined' ? true : followLinks
140
const info = this.getNode(p)
141
142
+ if (typeof info === 'undefined') {
143
+ console.error(`The file "${p}" was not found in the archive.`)
144
+ process.exit(1)
145
+ }
146
+
147
// if followLinks is false we don't resolve symlinks
148
if (info.link && followLinks) {
149
return this.getFile(info.link)
0 commit comments