Skip to content

Commit

Permalink
Update error msg + missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
samouri committed Dec 28, 2020
1 parent 419d1cc commit a7e3400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/git-util.js
Expand Up @@ -174,7 +174,7 @@ exports.defaultBranch = async () => {
}

throw new Error(
'Could not infer the default Git branch. Please specify one with the --branch flag or with an .np-config file.'
'Could not infer the default Git branch. Please specify one with the --branch flag or with a np config.'
);
};

Expand Down
2 changes: 1 addition & 1 deletion source/index.js
Expand Up @@ -47,7 +47,7 @@ module.exports = async (input = 'patch', options) => {
options.cleanup = false;
}

options.releaseBranch = options.releaseBranch || git.defaultBranch();
options.releaseBranch = options.releaseBranch || await git.defaultBranch();

const pkg = util.readPkg(options.contents);
const runTests = options.tests && !options.yolo;
Expand Down

0 comments on commit a7e3400

Please sign in to comment.