improve polarssl error info