• antirez's avatar
    DEBUG ERROR implemented. · 8eae54aa
    antirez authored
    The new "error" subcommand of the DEBUG command can reply with an user
    selected error, specified as its sole argument:
    
        DEBUG ERROR "LOADING please wait..."
    
    The error is generated just prefixing the command argument with a "-"
    character, and replacing newlines with spaces (since error replies can't
    include newlines).
    
    The goal of the command is to help in Client libraries unit tests by
    making simple to simulate a command call triggering a given error.
    8eae54aa
debug.c 35.2 KB