aboutsummaryrefslogtreecommitdiff
path: root/error.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'error.cgi')
-rwxr-xr-xerror.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/error.cgi b/error.cgi
index 1b386d8..026fbee 100755
--- a/error.cgi
+++ b/error.cgi
@@ -63,8 +63,12 @@ end
$d.out
+known = false
+$conf.known_errors.each{|err|
+ known = true if errorstr.index(err)
+}
-if $conf.auto_send_report
+if $conf.auto_send_report && !known
tmpfile = "/tmp/error.#{rand(10000)}"
File.open(tmpfile,"w"){|f|
f << errorstr