Avoid backtraces on expected failures when built with ghc 8; only use backtraces...
authorJoey Hess <joeyh@joeyh.name>
Wed, 16 Nov 2016 01:29:54 +0000 (21:29 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 16 Nov 2016 01:29:54 +0000 (21:29 -0400)
commit0a4479b8eccc8ad9f647706af0b53dc7d192ede9
treead16ad3caff52bba04e75c7bdd0a39da53a6e924
parent69915c6c9b5e41d600de052e870535845abbde96
Avoid backtraces on expected failures when built with ghc 8; only use backtraces for unexpected errors.

ghc 8 added backtraces on uncaught errors. This is great, but git-annex was
using error in many places for a error message targeted at the user, in
some known problem case. A backtrace only confuses such a message, so omit it.

Notably, commands like git annex drop that failed due to eg, numcopies,
used to use error, so had a backtrace.

This commit was sponsored by Ethan Aubin.
116 files changed:
Annex/AdjustedBranch.hs
Annex/Branch.hs
Annex/Content.hs
Annex/FileMatcher.hs
Annex/Init.hs
Annex/View.hs
Assistant/Threads/Watcher.hs
Assistant/Threads/WebApp.hs
Assistant/Upgrade.hs
Assistant/WebApp/Configurators/AWS.hs
Assistant/WebApp/Configurators/IA.hs
Assistant/WebApp/Configurators/Local.hs
Assistant/WebApp/Configurators/Ssh.hs
Assistant/WebApp/Configurators/WebDAV.hs
Assistant/WebApp/Gpg.hs
CHANGELOG
CmdLine/Action.hs
CmdLine/Batch.hs
CmdLine/GitAnnexShell.hs
CmdLine/GitAnnexShell/Checks.hs
CmdLine/Seek.hs
Command.hs
Command/AddUnused.hs
Command/AddUrl.hs
Command/Assistant.hs
Command/CheckPresentKey.hs
Command/ContentLocation.hs
Command/Dead.hs
Command/Describe.hs
Command/DiffDriver.hs
Command/Direct.hs
Command/DropKey.hs
Command/EnableRemote.hs
Command/ExamineKey.hs
Command/Expire.hs
Command/FromKey.hs
Command/Fsck.hs
Command/FuzzTest.hs
Command/GCryptSetup.hs
Command/Group.hs
Command/GroupWanted.hs
Command/Import.hs
Command/ImportFeed.hs
Command/Indirect.hs
Command/InitRemote.hs
Command/Lock.hs
Command/LockContent.hs
Command/Log.hs
Command/MetaData.hs
Command/Move.hs
Command/NumCopies.hs
Command/PreCommit.hs
Command/Proxy.hs
Command/ReKey.hs
Command/ReadPresentKey.hs
Command/RegisterUrl.hs
Command/Reinject.hs
Command/ResolveMerge.hs
Command/Schedule.hs
Command/SetKey.hs
Command/SetPresentKey.hs
Command/Sync.hs
Command/TestRemote.hs
Command/TransferInfo.hs
Command/Unannex.hs
Command/Undo.hs
Command/Ungroup.hs
Command/Uninit.hs
Command/Unused.hs
Command/VAdd.hs
Command/VCycle.hs
Command/VFilter.hs
Command/VPop.hs
Command/Vicfg.hs
Command/View.hs
Command/Wanted.hs
Command/WebApp.hs
Config/Files.hs
Creds.hs
Crypto.hs
Database/Types.hs
Git/AutoCorrect.hs
Git/CurrentRepo.hs
Git/GCrypt.hs
Limit.hs
Logs/Transitions.hs
Remote.hs
Remote/BitTorrent.hs
Remote/Bup.hs
Remote/Ddar.hs
Remote/Directory.hs
Remote/External.hs
Remote/GCrypt.hs
Remote/Git.hs
Remote/Glacier.hs
Remote/Helper/Chunked.hs
Remote/Helper/Encryptable.hs
Remote/Helper/Http.hs
Remote/Helper/Messages.hs
Remote/Helper/Ssh.hs
Remote/Hook.hs
Remote/Rsync.hs
Remote/S3.hs
Remote/Tahoe.hs
Remote/Web.hs
Remote/WebDAV.hs
Upgrade.hs
Utility/Daemon.hs
Utility/DirWatcher/FSEvents.hs
Utility/DirWatcher/INotify.hs
Utility/Exception.hs
Utility/Glob.hs
Utility/Gpg.hs
Utility/LockFile/PidLock.hs
Utility/Quvi.hs
Utility/UserInfo.hs