Security Learning Mode

When an error occurs on your web site, how should it be treated?