We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a324d58 commit f229831Copy full SHA for f229831
builder/src/File.hs
@@ -82,11 +82,13 @@ readBinary path =
82
return (Just a)
83
84
Left (offset, message) ->
85
- do IO.hPutStrLn IO.stderr $ unlines $
+ do Dir.copyFile path "bad.dat"
86
+ IO.hPutStrLn IO.stderr $ unlines $
87
[ "+-------------------------------------------------------------------------------"
- , "| Corrupt File: " ++ path
88
- , "| Byte Offset: " ++ show offset
89
- , "| Message: " ++ message
+ , "| Corrupt File: " ++ path
+ , "| Byte Offset: " ++ show offset
90
+ , "| Message: " ++ message
91
+ , "|"
92
, "| Please report this to https://github.com/elm/compiler/issues"
93
, "| Trying to continue anyway."
94
, "+-------------------------------------------------------------------------------"
0 commit comments