aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/bruiser.cpp
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-06-13 16:05:03 +0000
committerbloodstalker <thabogre@gmail.com>2017-06-13 16:05:03 +0000
commitf3a0629cf380ca0a7d0a5e39c6d37eb2c08695ef (patch)
tree342c08e8f19af2e37898ab29402845222c23fc07 /bruiser/bruiser.cpp
parentupdated (diff)
downloadmutator-f3a0629cf380ca0a7d0a5e39c6d37eb2c08695ef.tar.gz
mutator-f3a0629cf380ca0a7d0a5e39c6d37eb2c08695ef.zip
lil fixing-up
Diffstat (limited to '')
-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.");
+ }
}
}