From abe7009c7347dd2821bc687d8eb692bac2609bc2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 Mar 2017 23:32:44 +0300 Subject: Show assert if failed open streamed files. --- src/resources/map/map.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/resources') 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; } -- cgit v1.2.3-60-g2f50