If a bad domain name is entered by the user, the function _whois_cleanup_address() currently calls drupal_set_message() as follows:

if (!empty($address) && empty($result['domain'])) {
    drupal_set_message(t("Invalid address received."));
  }

As this is an error condition, this should be:

if (!empty($address) && empty($result['domain'])) {
    drupal_set_message(t("Invalid address received."), 'error');
  }

Comments

helmo’s picture

Title: _whois_cleanup_address should use "error" for drush_set_message "type" » _whois_cleanup_address should use "error" for drupal_set_message "type"
Assigned: Unassigned » helmo
Status: Active » Fixed

Thanks, committed for both D6 and D7

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.