mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
Throw RedisException when redis type can't be determined
This commit is contained in:
@@ -14,8 +14,9 @@
|
|||||||
//
|
//
|
||||||
// SPDX-License-Identifier: BSL-1.0
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
//
|
//
|
||||||
#include "Poco/Redis/Client.h"
|
|
||||||
|
|
||||||
|
#include "Poco/Redis/Client.h"
|
||||||
|
#include "Poco/Redis/Exception.h"
|
||||||
|
|
||||||
namespace Poco {
|
namespace Poco {
|
||||||
namespace Redis {
|
namespace Redis {
|
||||||
@@ -92,7 +93,7 @@ RedisType::Ptr Client::readReply()
|
|||||||
RedisType::Ptr result = createRedisType( _socket.get());
|
RedisType::Ptr result = createRedisType( _socket.get());
|
||||||
if ( result.isNull() )
|
if ( result.isNull() )
|
||||||
{
|
{
|
||||||
throw IOException("Invalid Redis type returned");
|
throw RedisException("Invalid Redis type returned");
|
||||||
}
|
}
|
||||||
|
|
||||||
result->read(_socket);
|
result->read(_socket);
|
||||||
|
|||||||
Reference in New Issue
Block a user