diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-09-30 23:20:33 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-09-30 23:20:33 -0700 |
commit | 2813ce0e72568a256a15df342e25bd3622eacaab (patch) | |
tree | d489c99f375a3f8718b5e5cf2e9fd9dab2154e44 /subx | |
parent | cd8395323b06575c38c09092cc03a19a844b65ef (diff) | |
download | mu-2813ce0e72568a256a15df342e25bd3622eacaab.tar.gz |
4628
Diffstat (limited to 'subx')
-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); } |