Skip to content

Improved error message and FP style - #141

Open
samthebest wants to merge 1 commit into
sbt:mainfrom
samthebest:patch-1
Open

Improved error message and FP style#141
samthebest wants to merge 1 commit into
sbt:mainfrom
samthebest:patch-1

Conversation

@samthebest

Copy link
Copy Markdown

Improved error message. Improved style according to FP: (a) if-else made into expression for clarity (b) formatting

Improved error message. Improved style according to FP: (a) if-else made into expression for clarity (b) formatting
lazy val initialVcsChecks = (st: State) =>
if ((vcs(st).status !!).trim.nonEmpty)
sys.error("Aborting release. Working directory has uncommitted changes, " +
"please commit your changes before running this command.")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user can also stash or revert. committing is just one way to solve it
also i remember there were talks about allowing release to continue even wit dirty wd when some setting is set to true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants