Skip to content

Commit

Permalink
Improved wording of errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Oct 20, 2017
1 parent 94e7c25 commit fa98b0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const updateDependenciesVersions = require( '../utils/updatedependenciesversions
const validatePackageToRelease = require( '../utils/validatepackagetorelease' );
const { getChangesForVersion } = require( '../utils/changelog' );

const BREAK_RELEASE_MESSAGE = 'Creating release has been aborted by the user.';
const BREAK_RELEASE_MESSAGE = 'You aborted publishing the release. Why? Oh why?!';

/**
* Releases all sub repositories found in specified path.
Expand Down Expand Up @@ -117,7 +117,7 @@ module.exports = function releaseSubRepositories( options ) {

// A user did not confirm the release process.
if ( err instanceof Error && err.message === BREAK_RELEASE_MESSAGE ) {
log.info( 'Aborted due to user\'s no confirmation.' );
log.info( 'Releasing has been aborted.' );

return Promise.resolve();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = function releaseRepository( options ) {
const packageJson = getPackageJson( cwd );

log.info( '' );
log.info( chalk.bold.blue( `Creating release for "${ packageJson.name }".` ) );
log.info( chalk.bold.blue( `Publishing the release of "${ packageJson.name }".` ) );

const promise = new Promise( ( resolve, reject ) => {
// Bump the version.
Expand Down

0 comments on commit fa98b0f

Please sign in to comment.