Issue #2222609 by Dave Reid: Use trigger_error() instead of drupal_se_message() to respect error logging settings.