Skip to content

Commit 85e31a5

Browse files
committed
details: ignore u-m-t error if ERR_ASSERTION
universal-module-tree returns this instead of ENOENT for some reason... Fixes: #178 PR-URL: #179
1 parent 46295fb commit 85e31a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

commands/details.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async function details (argv, arg1, arg2, arg3) {
6262
}
6363
}
6464
} catch (err) {
65-
if (err.code !== 'ENOENT') throw err
65+
if (err.code !== 'ENOENT' && err.code !== 'ERR_ASSERTION') throw err
6666
}
6767

6868
if (!name || (version !== 'latest' && !semver.valid(version))) {

0 commit comments

Comments
 (0)