This gives a detailed error messages whereas checking if `proxy` is `NULL` tells us only that on error.