Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved error message and FP style #141

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

samthebest
Copy link

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

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