• Pierre Jambet's avatar
    Fix error message for the DEBUG ZIPLIST command (#7745) · d52ce4ea
    Pierre Jambet authored
    DEBUG ZIPLIST <key> currently returns the following error string if the
    key is not a ziplist: "ERR Not an sds encoded string.". This looks like
    an accidental copy/paste error from the error returned in the else if
    branch above where this string is returned if the key is not an sds
    string. The command was added in
    ac61f906 and looking at the commit,
    nothing indicates that it is not an accidental typo.
    
    The error string now returns a correct error: "Not a ziplist encoded
    object", which accurately describes the error.
    d52ce4ea
debug.c 68.3 KB