File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import qualified Codec.Archive.Tar as Tar
2929import qualified Codec.Compression.GZip as GZip
3030import Control.Applicative
3131import Control.Concurrent (getNumCapabilities )
32+ import Control.Exception (IOException )
3233import Control.Monad
3334import Control.Monad.Catch
3435import Control.Monad.IO.Class
@@ -153,9 +154,9 @@ configFromConfigMonoid configStackRoot mproject configMonoid@ConfigMonoid{..} =
153154 Just userPath -> do
154155 tryPath <- try (liftIO $ canonicalizePath userPath >>= parseAbsDir)
155156 case tryPath of
156- Left (_ :: SomeException ) ->
157- error $ " Could not locate user specified directory \" " ++
158- userPath ++ " \" "
157+ Left (e :: IOException ) ->
158+ error ( " Could not locate user specified directory \" " ++ userPath ++ " \"\n " ++
159+ " IOException: " ++ ( show e))
159160 Right absPath -> return absPath
160161
161162 configJobs <-
@@ -227,7 +228,6 @@ configOptsParser docker =
227228 idm
228229 <*> optional (strOption
229230 ( long " local-bin-path"
230- <> short ' p'
231231 <> metavar " DIR"
232232 <> help " Install binaries to DIR"
233233 ))
You can’t perform that action at this time.
0 commit comments