Use correct way of returning PolarSSL error message.