Fix crash on unknown symlinks.
This commit is contained in:
parent
b220e117f2
commit
fd6611f955
4 changed files with 37 additions and 19 deletions
7
Core.hs
7
Core.hs
|
@ -165,3 +165,10 @@ showEndOk = verbose $ do
|
|||
showEndFail :: Annex ()
|
||||
showEndFail = verbose $ do
|
||||
liftIO $ putStrLn "\nfailed"
|
||||
|
||||
{- Exception pretty-printing. -}
|
||||
showErr :: (Show a) => a -> Annex ()
|
||||
showErr e = warning $ show e
|
||||
|
||||
warning :: String -> Annex ()
|
||||
warning s = liftIO $ hPutStrLn stderr $ "git-annex: " ++ s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue