Improve macro error messages by including position information.