mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Dump intervals in serialization check
The Interval::dump() method will show if intervals are synthetic or not, which can be useful when trying to determine why a comparison is failing. Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
This commit is contained in:
parent
4c8ccd99c3
commit
939491d060
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ void Datafile::addInterval (const Interval& interval)
|
|||
if (interval != test)
|
||||
{
|
||||
throw (format ("Encode / decode check failed:\n {1}\nis not equal to:\n {2}",
|
||||
serialization, test.serialize ()));
|
||||
interval.dump (), test.dump ()));
|
||||
}
|
||||
|
||||
_lines.push_back (serialization);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue