aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser
diff options
context:
space:
mode:
Diffstat (limited to 'bruiser')
-rw-r--r--bruiser/bruiser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/bruiser/bruiser.cpp b/bruiser/bruiser.cpp
index 86e2cd7..360df06 100644
--- a/bruiser/bruiser.cpp
+++ b/bruiser/bruiser.cpp
@@ -1074,6 +1074,11 @@ class LuaWrapper
if (iter.rfind(filename) == iter.size() - filename.size())
{
targetfile.open(iter);
+
+ if(targetfile.rdstate() != std::ios_base::goodbit)
+ {
+ PRINT_WITH_COLOR_LB(RED, "could not open the file.");
+ }
}
}