• Brian Tiger Chow's avatar
    fix(commands/err) · ef0826ac
    Brian Tiger Chow authored
    I didn't know there were dragons here.
    
    When casting errors we've gotta be careful. Apparently both values and
    pointers satisfy the error interface. Type checking for one doesn't
    catch the other.
    
    cc @whyrusleeping @mappum @jbenet
    
    License: MIT
    Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
    ef0826ac
command.go 7.23 KB