Improved error message for potential bug.