X509: add debug info to known error types