diff options
author | John Wiegley <johnw@newartisans.com> | 2011-02-12 17:20:00 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2011-02-12 17:55:56 -0500 |
commit | 512542552b3e3e78f610f3d3f2fd1c8169188324 (patch) | |
tree | 91d350873ffdfc3a5dcca10b2a7558f05d78523d /src/annotate.cc | |
parent | a69cd37fa240135eef2abd5f8a86760d3a0e9a15 (diff) | |
download | fork-ledger-512542552b3e3e78f610f3d3f2fd1c8169188324.tar.gz fork-ledger-512542552b3e3e78f610f3d3f2fd1c8169188324.tar.bz2 fork-ledger-512542552b3e3e78f610f3d3f2fd1c8169188324.zip |
When a test fails, show the command that failed
Diffstat (limited to 'src/annotate.cc')
-rw-r--r-- | src/annotate.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/annotate.cc b/src/annotate.cc index 352690c6..093837fe 100644 --- a/src/annotate.cc +++ b/src/annotate.cc @@ -42,7 +42,8 @@ void annotation_t::parse(std::istream& in) { do { istream_pos_type pos = in.tellg(); - assert(pos != -1); + if (pos == -1) + return; char buf[256]; char c = peek_next_nonws(in); |