diff options
Diffstat (limited to 'src/net/packetlimiter.cpp')
-rw-r--r-- | src/net/packetlimiter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/packetlimiter.cpp b/src/net/packetlimiter.cpp index 8c34b6919..dd54693b7 100644 --- a/src/net/packetlimiter.cpp +++ b/src/net/packetlimiter.cpp @@ -23,6 +23,7 @@ #include "configuration.h" #include "settings.h" +#include "utils/checkutils.h" #include "utils/timer.h" #include <fstream> @@ -228,6 +229,8 @@ void PacketLimiter::writePacketLimits(const std::string &packetLimitsName) outPacketFile.open(packetLimitsName.c_str(), std::ios::out); if (!outPacketFile.is_open()) { + reportAlways("Error opening file for writing: %s", + packetLimitsName.c_str()); outPacketFile.close(); return; } |