summaryrefslogtreecommitdiff
path: root/src/gui/windows/shopwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/shopwindow.cpp')
-rw-r--r--src/gui/windows/shopwindow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index 09686ecaf..0de38a084 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -75,6 +75,7 @@
#include "net/tradehandler.h"
#endif // TMWA_SUPPORT
+#include "utils/checkutils.h"
#include "utils/delete2.h"
#include "utils/gettext.h"
@@ -535,6 +536,8 @@ void ShopWindow::loadList()
shopFile.open(shopListName.c_str(), std::ios::in);
if (!shopFile.is_open())
{
+ reportAlways("Error opening file for reading: %s",
+ shopListName.c_str());
shopFile.close();
return;
}
@@ -589,7 +592,8 @@ void ShopWindow::saveList() const
shopFile.open(shopListName.c_str(), std::ios::binary);
if (!shopFile.is_open())
{
- logger->log1("Unable to open shoplist.txt for writing");
+ reportAlways("Error opening file writing: %s",
+ shopListName.c_str());
return;
}