Skip to content

Commit

Permalink
emit log message when saving reproducers (#1273)
Browse files Browse the repository at this point in the history
  • Loading branch information
samalws-tob authored Jun 13, 2024
1 parent 9f05340 commit 1cb47b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Echidna/Output/Corpus.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ saveTxs dir = mapM_ saveTxSeq where
saveTxSeq txSeq = do
createDirectoryIfMissing True dir
let file = dir </> (show . abs . hash . show) txSeq <.> "txt"
putStrLn ("Saving reproducer to " ++ file)
unlessM (doesFileExist file) $ encodeFile file (toJSON txSeq)

loadTxs :: FilePath -> IO [(FilePath, [Tx])]
Expand Down

0 comments on commit 1cb47b3

Please sign in to comment.