def _entity_string_for_errors(entity):
  """Derive a string describing `entity` for use in error messages."""
  try:
    character = entity.character
    return 'a Sprite or Drape handling character {}'.format(repr(character))
  except AttributeError:
    return 'the Backdrop'