Include index in error message.