better error messages for join