git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #1455 from purescript/1374

Implement @hdgarrood's suggestion for psc-publish

commit525f3d484b724d36b24a5456f010ecaca9817feb authorPhil Freeman <paf31@cantab.net> dateThu 10 Sep 2015, 07:47 (11 years ago) parent29c1f106d8efc2
1 file changed+6
src/Language/PureScript/Publish/ErrorsWarnings.hs+6
src/Language/PureScript/Publish/ErrorsWarnings.hs+6
@@ -162,6 +162,12 @@ displayUserError e = case e of
162162 , para "Note: tagged versions must be in one of the following forms:"
163163 , indented (para "* v{MAJOR}.{MINOR}.{PATCH} (example: \"v1.6.2\")")
164164 , indented (para "* {MAJOR}.{MINOR}.{PATCH} (example: \"1.6.2\")")
165+ , spacer
166+ , para (concat
167+ [ "If the version you are publishing is not yet tagged, you might want to use"
168+ , "the --dry-run flag instead, which removes this requirement. Run"
169+ , "psc-publish --help for more details."
170+ ])
165171 ]
166172 AmbiguousVersions vs ->
167173 vcat $