Answers.Body: <p>Your guess is correct... as the docs say, you should never have <a href="http://buildwithcraft.com/docs/config-settings#devMode" rel="nofollow">devMode</a> enabled in production environments specifically for reasons like this (as well as many others).</p>
  
  <p>If you find errors that are leaking sensitive server info with <code>devMode</code> disabled, then that is a bug and should be reported to support@buildwithcraft.com.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-02T19:30:14.040Z
Answers.LastActivityDate: 2015-11-02T19:30:14.040Z
Answers.UserDisplayName: Brad Bell
Body: <p>I have a craft installation and recently my server had issues and on the page rendering mysql and other errors were shown. 
  Of course this creates security implications. Is there a way to restrict these errors? My guess it that i just need to change the <code>devMode</code> to <code>false</code> in <code>general.php</code>. Is there anything else i need to do? I am asking because I cannot really reproduce the error anymore.</p>
  
Tags: <config><error-message><error><error-handling>
Title: Craft internal error exposing sensitive data
ThreadText: # Craft internal error exposing sensitive data
  
  (Asked by: username_0 on 2015-11-02)
  
  I have a craft installation and recently my server had issues and on the page rendering mysql and other errors were shown.
  Of course this creates security implications. Is there a way to restrict these errors? My guess it that i just need to change the `devMode` to `false` in `general.php`. Is there anything else i need to do? I am asking because I cannot really reproduce the error anymore.
  
  **Tags:** config, error-message, error, error-handling
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-11-02. Score: 4
  
  Your guess is correct... as the docs say, you should never have [devMode](http://buildwithcraft.com/docs/config-settings#devMode) enabled in production environments specifically for reasons like this (as well as many others).
  
  If you find errors that are leaking sensitive server info with `devMode` disabled, then that is a bug and should be reported to support@buildwithcraft.com.
  
  
  ---
  
  