diff options
Diffstat (limited to 'subx/003trace.cc')
-rw-r--r-- | subx/003trace.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subx/003trace.cc b/subx/003trace.cc index b442cbdf..5ab9e955 100644 --- a/subx/003trace.cc +++ b/subx/003trace.cc @@ -356,6 +356,10 @@ bool trace_doesnt_contain(string label, string line) { bool trace_doesnt_contain(string expected) { vector<string> tmp = split_first(expected, ": "); + if (SIZE(tmp) == 1) { + raise << expected << ": missing label or contents in trace line\n" << end(); + assert(false); + } return trace_doesnt_contain(tmp.at(0), tmp.at(1)); } |