summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-06 23:32:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-06 23:32:44 +0300
commitabe7009c7347dd2821bc687d8eb692bac2609bc2 (patch)
tree89abfab81beff37fc854c2e574a12fe0bc6f92b7 /src/client.cpp
parentba21ad5b52d75c98d15a547a64d246e576c1afc2 (diff)
downloadplus-abe7009c7347dd2821bc687d8eb692bac2609bc2.tar.gz
plus-abe7009c7347dd2821bc687d8eb692bac2609bc2.tar.bz2
plus-abe7009c7347dd2821bc687d8eb692bac2609bc2.tar.xz
plus-abe7009c7347dd2821bc687d8eb692bac2609bc2.zip
Show assert if failed open streamed files.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 7b54d6823..961287868 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -135,6 +135,7 @@
#include "resources/sprite/spritereference.h"
+#include "utils/checkutils.h"
#include "utils/cpu.h"
#include "utils/delete2.h"
#include "utils/dumplibs.h"
@@ -1904,6 +1905,11 @@ void Client::initTradeFilter()
tradeFile << "i'm trade" << std::endl;
tradeFile << "i'm trading" << std::endl;
}
+ else
+ {
+ reportAlways("Error opening file for writing: %s",
+ tradeListName.c_str());
+ }
tradeFile.close();
}
}