diff --git a/net/Socket.hpp b/net/Socket.hpp index 5ba902e25..fe4a72163 100644 --- a/net/Socket.hpp +++ b/net/Socket.hpp @@ -586,6 +586,7 @@ namespace HttpHelper if (stat(path.c_str(), &st) != 0) { LOG_WRN("Failed to stat [" << path << "]. File will not be sent."); + throw Poco::FileNotFoundException("Failed to stat [" + path + "]. File will not be sent."); return; }