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/net/packetlimiter.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/net') 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 @@ -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; } -- cgit v1.2.3-70-g09d2