diff options
Diffstat (limited to 'lib/ls.js')
-rw-r--r-- | lib/ls.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -166,7 +166,10 @@ class LS extends BaseCommand { ) } - if (problems.size) { + const shouldThrow = problems.size && + ![...problems].every(problem => problem.startsWith('extraneous:')) + + if (shouldThrow) { throw Object.assign( new Error([...problems].join(EOL)), { code: 'ELSPROBLEMS' } |