Hi,

This is probably a duplicate, but I couldn't find anything, so here I go:

While upgrading one of my modules to Drupal7, I had a bug with trying to create some tables two times.
In the resulting error message, there was some escaped markup (I replaced the angle brackets with square brackets to avoid markup munging):
DatabaseSchemaObjectExistsException: Table [em class="placeholder"]captcha_points[/em] already exists. in DatabaseSchema->createTable() (line 605 of /path/to/includes/database/schema.inc).
also see attached screenshot

FYI, the code referred to in the error message is:

   if ($this->tableExists($name)) {
      throw new DatabaseSchemaObjectExistsException(t('Table %name already exists.', array('%name' => $name)));
    }
CommentFileSizeAuthor
Screen shot 2010-05-25 at 21.58.59.png59.92 KBsoxofaan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JohnWoltman’s picture

Chiming in, this also pops up for FieldExceptions. I noticed it when accidentally creating a duplicate field. Line 275 of field.crud.inc. I suppose this is general issue, related to however Drupal displays errors.