diff options
author | Joey Hess <joey@kitenet.net> | 2010-10-31 18:04:34 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-10-31 18:04:34 -0400 |
commit | fd6611f9554e43f2bc365f7ef70f90877c9403d0 (patch) | |
tree | b4b91e6448ea839a419e8a94e9f8dc1c013c99c7 /Core.hs | |
parent | b220e117f2e06133919ad31e9cc225470f501566 (diff) |
Fix crash on unknown symlinks.
Diffstat (limited to 'Core.hs')
-rw-r--r-- | Core.hs | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |