Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
npm version: handle checkGit errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rlidwka committed Dec 22, 2014
1 parent c62be42 commit 9f9b8e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/version.js
Expand Up @@ -54,6 +54,8 @@ function version (args, silent, cb_) {
data.version = newVersion

checkGit(function (er, hasGit) {
if (er) return cb_(er)

write(data, "package.json", function (er) {
if (er) return cb_(er)

Expand Down

0 comments on commit 9f9b8e6

Please sign in to comment.