Paradise error handler (#10571)

* Ports the Paradise error handler.

Made by @Krausus

Initial code port, it compiles!

* It now looks cool!

All kinds of fancy CSS and HTML things.

* Stuff

Fixes Comic's comments.

Ports some more changes from Paradise.

The src from the machinery process is NOT included. I consider stack
traces more valuable.
This commit is contained in:
PJB3005
2016-06-23 02:56:49 +02:00
committed by clusterfack
parent 07998874a6
commit df30c3f4b7
11 changed files with 365 additions and 9 deletions

View File

@@ -174,6 +174,12 @@
var/enable_roundstart_away_missions = 0
// Error handler config options.
var/error_cooldown = 600 // The "cooldown" time for each occurrence of a unique error
var/error_limit = 9 // How many occurrences before the next will silence them
var/error_silence_time = 6000 // How long a unique error will be silenced for
var/error_msg_delay = 50 // How long to wait between messaging admins about occurrences of a unique error
/datum/configuration/New()
. = ..()
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
@@ -544,6 +550,15 @@
enable_roundstart_away_missions = 1
if("enable_wages")
roundstart_enable_wages = 1
if("error_cooldown")
error_cooldown = value
if("error_limit")
error_limit = value
if("error_silence_time")
error_silence_time = value
if("error_msg_delay")
error_msg_delay = value
else
diary << "Unknown setting in configuration: '[name]'"