fix version display

This commit is contained in:
Philipp Kunz 2016-10-22 01:34:07 +02:00
parent 2352456be1
commit bfcd78b169
2 changed files with 4 additions and 2 deletions

4
dist/npmts.cli.js vendored
View File

@ -50,7 +50,9 @@ exports.run = () => {
.then(NpmtsShip.run);
return done.promise;
})
.catch((err) => { console.log(err); });
.catch((err) => { if (err instanceof Error) {
console.log(err);
} });
npmtsCli.addVersion(npmtsProjectInfo.version);
npmtsCli.startParse();
return done.promise;

View File

@ -53,7 +53,7 @@ export let run = () => {
return done.promise
})
.catch((err) => { console.log(err) })
.catch((err) => { if (err instanceof Error) { console.log(err) } } )
npmtsCli.addVersion(npmtsProjectInfo.version)
npmtsCli.startParse()
return done.promise