Improved error messages when setting a gate location.