diff options
-rw-r--r-- | subx/011run.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/subx/011run.cc b/subx/011run.cc index 7a63c159..3c5d7158 100644 --- a/subx/011run.cc +++ b/subx/011run.cc @@ -180,7 +180,10 @@ void parse(istream& fin, program& out) { void flush(program& p, vector<line>& lines) { if (lines.empty()) return; - assert(!p.segments.empty()); + if (p.segments.empty()) { + raise << "input does not start with a '==' section header\n" << end(); + return; + } trace(99, "parse") << "flushing to segment" << end(); p.segments.back().lines.swap(lines); } |