... | ... |
@@ -405,9 +405,9 @@ void db_redis_consume_replies(km_redis_con_t *con) { |
405 | 405 |
} |
406 | 406 |
|
407 | 407 |
const char *db_redis_get_error(km_redis_con_t *con) { |
408 |
- if (con && con->con && con->con->errstr) { |
|
408 |
+ if (con && con->con && con->con->errstr[0]) { |
|
409 | 409 |
return con->con->errstr; |
410 | 410 |
} else { |
411 | 411 |
return "<broken redis connection>"; |
412 | 412 |
} |
413 |
-} |
|
414 | 413 |
\ No newline at end of file |
414 |
+} |