Stop displaying errors in production server in Drupal 7
Did you try this way : admin/config/development/logging ?

(Where you can choose to display every messages, or just errors, or no message at all)