summaryrefslogtreecommitdiff
path: root/src/resources
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/resources
parentba21ad5b52d75c98d15a547a64d246e576c1afc2 (diff)
downloadmanaplus-abe7009c7347dd2821bc687d8eb692bac2609bc2.tar.gz
manaplus-abe7009c7347dd2821bc687d8eb692bac2609bc2.tar.bz2
manaplus-abe7009c7347dd2821bc687d8eb692bac2609bc2.tar.xz
manaplus-abe7009c7347dd2821bc687d8eb692bac2609bc2.zip
Show assert if failed open streamed files.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/map/map.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp
index 3d47e96fc..b30892048 100644
--- a/src/resources/map/map.cpp
+++ b/src/resources/map/map.cpp
@@ -63,6 +63,7 @@
#include "render/renderers.h"
#endif // USE_OPENGL
+#include "utils/checkutils.h"
#include "utils/delete2.h"
#include "utils/dtor.h"
#include "utils/timer.h"
@@ -1221,7 +1222,8 @@ void Map::saveExtraLayer() const restrict2
mapFile.open(mapFileName.c_str(), std::ios::binary);
if (!mapFile.is_open())
{
- logger->log1("Unable to open extralayer.txt for writing");
+ reportAlways("Error opening file for writing: %s",
+ mapFileName.c_str());
return;
}