Skip to content

Commit d5e28be

Browse files
committed
Replace show with toFilePath in an error message
1 parent 75f9dd5 commit d5e28be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Stack/Build/Types.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ instance Show StackBuildException where
209209
-- Supressing duplicate output
210210
show (CabalExitedUnsuccessfully exitCode taskProvides' execName fullArgs logFiles bs) =
211211
let fullCmd = (dropQuotes (show execName) ++ " " ++ (unwords fullArgs))
212-
logLocations = maybe "" (\fp -> "\n Logs have been written to: " ++ show fp) logFiles
212+
logLocations = maybe "" (\fp -> "\n Logs have been written to: " ++ toFilePath fp) logFiles
213213
in "\n-- While building package " ++ dropQuotes (show taskProvides') ++ " using:\n" ++
214214
" " ++ fullCmd ++ "\n" ++
215215
" Process exited with code: " ++ show exitCode ++

0 commit comments

Comments
 (0)