diff options
-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(); |