diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/textual.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/textual.cc b/src/textual.cc index 37c38e55..badbdee5 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -613,6 +613,10 @@ void instance_t::include_directive(char * line) DEBUG("textual.include", "Line " << linenum << ": " << "Including path '" << filename << "'"); + if (! exists(filename)) + throw_(std::runtime_error, + _("File to include was not found: '%1'" << filename)); + ifstream stream(filename); instance_t instance(account_stack, tag_stack, |