Skip to content

Commit b78b8b9

Browse files
committed
Include dirty output for debugging
1 parent b5d3090 commit b78b8b9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

etc/scripts/release.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,12 @@ rules global@Global{..} args = do
199199

200200
Stdout dirty <- cmd "git status --porcelain"
201201
when (not gAllowDirty && not (null (trim dirty))) $
202-
error ("Working tree is dirty. Use --" ++ allowDirtyOptName ++ " option to continue anyway.")
202+
error $ concat
203+
[ "Working tree is dirty. Use --"
204+
, allowDirtyOptName
205+
, " option to continue anyway. Output:\n"
206+
, show dirty
207+
]
203208
() <- cmd
204209
[gProjectRoot </> releaseBinDir </> binaryName </> stackExeFileName]
205210
(stackArgs global)

0 commit comments

Comments
 (0)