Skip to content

Commit

Permalink
#511690 by webchick. better error msg when uid=0 is missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
massgov-outsider committed Jan 17, 2011
1 parent 70e5100 commit 234c541
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drush.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ function drush_drupal_login($drush_user) {
if (empty($user)) {
if (is_numeric($drush_user)) {
$message = dt('Could not login with user ID #!user.', array('!user' => $drush_user));
if ($drush_user === 0) {
$message .= ' ' . dt('This is typically caused by importing a MySQL database dump from a faulty tool which re-numbered the anonymous user ID in the users table. See !link for help recovering from this situation.', array('!link' => 'http://drupal.org/node/1029506'));
}
}
else {
$message = dt('Could not login with user account `!user\'.', array('!user' => $drush_user));
Expand Down

0 comments on commit 234c541

Please sign in to comment.