Bug 1293172: improve DTLS handshake error message. r=mt

MozReview-Commit-ID: GM28RvCQ3O4

--HG--
extra : rebase_source : 690ec762844950c7aff2f7382d48de67a7f5e786
This commit is contained in:
Nils Ohlmeier [:drno] 2016-08-07 22:34:41 -07:00
parent 4ab986dd19
commit f8f35e1df4

View File

@ -887,7 +887,9 @@ void TransportLayerDtls::Handshake() {
}
break;
default:
MOZ_MTLOG(ML_ERROR, LAYER_INFO << "SSL handshake error "<< err);
const char *err_msg = PR_ErrorToName(err);
MOZ_MTLOG(ML_ERROR, LAYER_INFO << "DTLS handshake error " << err << " ("
<< err_msg << ")");
TL_SET_STATE(TS_ERROR);
break;
}