From 512542552b3e3e78f610f3d3f2fd1c8169188324 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 12 Feb 2011 17:20:00 -0500 Subject: When a test fails, show the command that failed --- src/annotate.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/annotate.cc') 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); -- cgit v1.2.3