diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-06 23:32:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-06 23:32:44 +0300 |
commit | abe7009c7347dd2821bc687d8eb692bac2609bc2 (patch) | |
tree | 89abfab81beff37fc854c2e574a12fe0bc6f92b7 /src/client.cpp | |
parent | ba21ad5b52d75c98d15a547a64d246e576c1afc2 (diff) | |
download | manaverse-abe7009c7347dd2821bc687d8eb692bac2609bc2.tar.gz manaverse-abe7009c7347dd2821bc687d8eb692bac2609bc2.tar.bz2 manaverse-abe7009c7347dd2821bc687d8eb692bac2609bc2.tar.xz manaverse-abe7009c7347dd2821bc687d8eb692bac2609bc2.zip |
Show assert if failed open streamed files.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 6 |
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(); } } |