diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-07 12:10:14 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-07 12:10:28 -0700 |
commit | f5f4b698533b3d7a5016d1d80c5d59e2c2d8ea6e (patch) | |
tree | d264bb1ff070f8f2908e6d05413d0b1fa1e41a12 /cpp/013run | |
parent | b3707a6f5002c9a82cfc5164aa86b8c4f7fe69f9 (diff) | |
download | mu-f5f4b698533b3d7a5016d1d80c5d59e2c2d8ea6e.tar.gz |
1029
Diffstat (limited to 'cpp/013run')
-rw-r--r-- | cpp/013run | 4 |
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(); |