Skip to content
  • Daniel Lublin's avatar
    287d2eed
    refactor: More useful error message on invalid OTP · 287d2eed
    Daniel Lublin authored and Rasmus Dahlberg's avatar Rasmus Dahlberg committed
    Have to properly wrap errors using "%w", to be able to get hold of the
    specific one higher up.
    
    The regular (still present) error message when typing wrong OTP is the
    long and incomprehensible:
    
        stprov local run: add data: post data: do request: Post
        "https://192.168.12.42:2009/stprov/v0.0.1/add-data": x509:
        certificate signed by unknown authority (possibly because of "x509:
        invalid signature: parent certificate cannot sign this kind of
        certificate" while trying to verify candidate authority certificate
        "serial:0")
    287d2eed
    refactor: More useful error message on invalid OTP
    Daniel Lublin authored and Rasmus Dahlberg's avatar Rasmus Dahlberg committed
    Have to properly wrap errors using "%w", to be able to get hold of the
    specific one higher up.
    
    The regular (still present) error message when typing wrong OTP is the
    long and incomprehensible:
    
        stprov local run: add data: post data: do request: Post
        "https://192.168.12.42:2009/stprov/v0.0.1/add-data": x509:
        certificate signed by unknown authority (possibly because of "x509:
        invalid signature: parent certificate cannot sign this kind of
        certificate" while trying to verify candidate authority certificate
        "serial:0")
Loading