-
-
Notifications
You must be signed in to change notification settings - Fork 393
Parseable, consistent error messages #1436
Copy link
Copy link
Closed
Labels
A-WISHSome kind of improvement request or proposal.Some kind of improvement request or proposal.checkcliCommand line parsing, options, arguments and suchlike.Command line parsing, options, arguments and suchlike.csvThe csv file format, csv output format, or generally CSV-related.The csv file format, csv output format, or generally CSV-related.journalThe journal file format, and its features.The journal file format, and its features.timeclockThe timeclock file format.The timeclock file format.timedotThe timedot file format.The timedot file format.toolshledger developer tools, scripts, processes..hledger developer tools, scripts, processes..
Description
Metadata
Metadata
Assignees
Labels
A-WISHSome kind of improvement request or proposal.Some kind of improvement request or proposal.checkcliCommand line parsing, options, arguments and suchlike.Command line parsing, options, arguments and suchlike.csvThe csv file format, csv output format, or generally CSV-related.The csv file format, csv output format, or generally CSV-related.journalThe journal file format, and its features.The journal file format, and its features.timeclockThe timeclock file format.The timeclock file format.timedotThe timedot file format.The timedot file format.toolshledger developer tools, scripts, processes..hledger developer tools, scripts, processes..
Right now,
hledger checkerror messages are hard to parse which makes writing tools around hledger hard. Here is an example of an error output when an account is undeclared:and here is an error output when a transaction doesn't balance:
As you can see, the structures of the error messages are different, requiring different error parsers.