diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2013-08-27 22:42:54 +0200 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2013-08-27 22:42:54 +0200 |
commit | 9e4fa4a6359020621b52493b57d9daa15b95f054 (patch) | |
tree | 38a70a1dd372467335aad48b012c8f6f57686727 /error.cgi | |
parent | d43d6e0cd93474350c7650d7b92f8090928d7180 (diff) |
add possibility to ignore specific errors
Diffstat (limited to 'error.cgi')
-rwxr-xr-x | error.cgi | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |