a325524454
Added a --json-exceptions option, which makes some exceptions be output in json. The distinction is that --json-error-messages is for messages relating to a particular ActionItem, while --json-exceptions is for messages that are not, eg ones for a file that does not exist. It's unfortunate that we need two switches with such a fine distinction between them, but I'm worried about maintaining backwards compatability in the json output, to avoid breaking anything that parses it, and this was the way to make sure I didn't. toplevelWarning is generally used for the latter kind of message. And the other calls to toplevelWarning could be converted to showException. The only possible gotcha is that if toplevelWarning is ever called after starting acting on a file, it will add to the --json-error-messages of the json displayed for that file and converting to showException would be a behavior change. That seems unlikely, but I didn't convery everything to avoid needing to satisfy myself it was not a concern. Sponsored-by: Dartmouth College's Datalad project |
||
---|---|---|
.. | ||
ActionItem.hs | ||
AdjustedBranch.hs | ||
Availability.hs | ||
Backend.hs | ||
Benchmark.hs | ||
BranchState.hs | ||
CatFileHandles.hs | ||
CleanupActions.hs | ||
Command.hs | ||
Concurrency.hs | ||
Creds.hs | ||
Crypto.hs | ||
DeferredParse.hs | ||
DesktopNotify.hs | ||
Difference.hs | ||
Direction.hs | ||
Distribution.hs | ||
Export.hs | ||
FileMatcher.hs | ||
GitConfig.hs | ||
Group.hs | ||
Import.hs | ||
IndexFiles.hs | ||
Key.hs | ||
KeySource.hs | ||
Link.hs | ||
LockCache.hs | ||
Messages.hs | ||
MetaData.hs | ||
Mime.hs | ||
NumCopies.hs | ||
ProposedAccepted.hs | ||
RefSpec.hs | ||
Remote.hs | ||
RemoteConfig.hs | ||
RemoteState.hs | ||
RepoVersion.hs | ||
ScheduledActivity.hs | ||
StallDetection.hs | ||
StandardGroups.hs | ||
StoreRetrieve.hs | ||
Test.hs | ||
Transfer.hs | ||
Transferrer.hs | ||
TransferrerPool.hs | ||
Transitions.hs | ||
TrustLevel.hs | ||
Upgrade.hs | ||
UrlContents.hs | ||
UUID.hs | ||
VectorClock.hs | ||
View.hs | ||
WorkerPool.hs |