about summary refs log tree commit diff stats
path: root/cpp/013run
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-07 12:10:14 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-07 12:10:28 -0700
commitf5f4b698533b3d7a5016d1d80c5d59e2c2d8ea6e (patch)
treed264bb1ff070f8f2908e6d05413d0b1fa1e41a12 /cpp/013run
parentb3707a6f5002c9a82cfc5164aa86b8c4f7fe69f9 (diff)
downloadmu-f5f4b698533b3d7a5016d1d80c5d59e2c2d8ea6e.tar.gz
1029
Diffstat (limited to 'cpp/013run')
-rw-r--r--cpp/013run4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/013run b/cpp/013run
index 7399b2e3..4917271b 100644
--- a/cpp/013run
+++ b/cpp/013run
@@ -100,6 +100,10 @@ if (argc > 1) {
 :(code)
 void load(string filename) {
   ifstream fin(filename.c_str());
+  if (!fin) {
+    raise << "no such file " << filename << '\n';
+    return;
+  }
   fin >> std::noskipws;
   add_recipes(fin);
   fin.close();