about summary refs log tree commit diff stats
path: root/030container.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-06-10 14:36:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-06-10 15:41:42 -0700
commit909adb27f9df2ba58e703562e3cf8f948fc58b56 (patch)
treed85bf7767b9d38479e66de96a4fddebd27e98ef7 /030container.cc
parentf0f077661c1f5d587602343a1a0bc82f0c99cf59 (diff)
downloadmu-909adb27f9df2ba58e703562e3cf8f948fc58b56.tar.gz
3905
Standardize exit paths. Most layers now don't need to know about termbox.

We can't really use `assert` in console-mode apps; it can't just exit because
we want to be able to check assertion failures in tests.
Diffstat (limited to '030container.cc')
-rw-r--r--030container.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/030container.cc b/030container.cc
index b189435f..2e5da42e 100644
--- a/030container.cc
+++ b/030container.cc
@@ -248,9 +248,8 @@ container_metadata& get(vector<pair<type_tree*, container_metadata> >& all, cons
     if (matches(all.at(i).first, key))
       return all.at(i).second;
   }
-  tb_shutdown();
   raise << "unknown size for type '" << to_string(key) << "'\n" << end();
-  assert(false);
+  exit(1);
 }
 
 bool contains_key(const vector<pair<type_tree*, container_metadata> >& all, const type_tree* key) {