File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 99
1010module Main where
1111
12+ import Blaze.ByteString.Builder (toLazyByteString , copyByteString )
13+ import Blaze.ByteString.Builder.Char.Utf8 (fromShow )
1214import Control.Exception
1315import Control.Monad
1416import Control.Monad.IO.Class
1517import Control.Monad.Logger
1618import Control.Monad.Reader (ask )
19+ import qualified Data.ByteString.Lazy as L
1720import Data.Char (toLower )
1821import Data.List
1922import qualified Data.List as List
@@ -236,7 +239,7 @@ main =
236239 case fromException e of
237240 Just ec -> exitWith ec
238241 Nothing -> do
239- print e
242+ L. hPut stderr $ toLazyByteString $ fromShow e <> copyByteString " \n "
240243 exitFailure
241244 where
242245 dockerHelpOptName = Docker. dockerCmdName ++ " -help"
Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ executable stack
167167 Plugins.Commands
168168
169169 build-depends : base >= 4.7 && < 5
170+ , blaze-builder
170171 , bytestring >= 0.10.4.0
171172 , containers
172173 , exceptions
You can’t perform that action at this time.
0 commit comments