throw drupal_set_message on errors