Improves caught exception logging

Also refactors away "log_runtime" config var to use its name for a
helper proc
This commit is contained in:
Krausus
2016-07-14 15:44:28 -04:00
parent fafc45d237
commit 0535765ba4
6 changed files with 20 additions and 12 deletions

View File

@@ -327,9 +327,7 @@
/datum/controller/process/proc/catchException(var/exception/e, var/thrower)
if(istype(e)) // Real runtimes go to the real error handler
// There are two newlines here, because handling desc sucks
e.desc = " Caught by process: [name]\n\n" + e.desc
world.Error(e, e_src = thrower)
log_runtime(e, thrower, "Caught by process: [name]")
return
var/etext = "[e]"
var/eid = "[e]" // Exception ID, for tracking repeated exceptions