From 5b50d4f31075be5ba39923184e6df039d82d5c4f Mon Sep 17 00:00:00 2001 From: Dennis Felsing Date: Fri, 2 Oct 2020 11:11:34 +0200 Subject: [PATCH] Print error when opening config file fails --- src/engine/shared/config.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/shared/config.cpp b/src/engine/shared/config.cpp index b33c77ca6..5bed5f18c 100644 --- a/src/engine/shared/config.cpp +++ b/src/engine/shared/config.cpp @@ -70,7 +70,10 @@ public: m_ConfigFile = m_pStorage->OpenFile(aConfigFileTmp, IOFLAG_WRITE, IStorage::TYPE_SAVE); if(!m_ConfigFile) + { + dbg_msg("config", "ERROR: opening %s failed", aConfigFileTmp); return; + } m_Failed = false;