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