Skip to content

Commit

Permalink
Some better output
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg authored and Herbert Valerio Riedel committed Sep 22, 2016
1 parent 6b37f0c commit 2d14580
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ main2 Opts{..} S3Cfg{..} = handle pure $ do
unless (s256 == s256') $
fail "sha256 mismatch"
unless (m5 == m5') $
fail "sha256 mismatch"
fail "md5 mismatch"

s3PutObject' conn thrId pkgdat ("package/" <> pkg)

Expand Down
2 changes: 1 addition & 1 deletion src/SimpleS3.hs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ s3ListObjects1 (s3cfg@S3Cfg {..}) c pfx marker recurse = do

conts <- forM conts_ $ \c ->
case parseXML c :: Maybe ObjMetaInfo of
Nothing -> error $ "parseXML ObjMetaInfo failed: " ++ show c
Nothing -> error $ "parseXML ObjMetaInfo failed: " ++ X.showElement c
Just x -> return x

let !isTrunc = case s3xmlGetStr lbresult "IsTruncated" of
Expand Down

0 comments on commit 2d14580

Please sign in to comment.