Skip to content

Commit 3b3cf55

Browse files
committed
adding error from npm.view to output:
1 parent cba475f commit 3b3cf55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/node-package-manager.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ export class NodePackageManager implements INodePackageManager {
9696
try {
9797
viewResult = this.$childProcess.exec(`npm view ${packageName} ${flags}`).wait();
9898
} catch(e) {
99-
this.$errors.failWithoutHelp(e);
99+
this.$logger.out(e)
100+
throw e;
100101
}
101102
return JSON.parse(viewResult);
102103
}).future<any>()();

0 commit comments

Comments
 (0)