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

@@ -648,7 +648,7 @@
newSnack.name = "Synthetic [newSnack.name]"
custom_emote(2, "[pick("gibbers","drools","slobbers","claps wildly","spits")] as they vomit [newSnack] from their mouth!")
catch(var/exception/e)
log_to_dd("Cooking error: [e] in [e.file]:[e.line]")
log_runtime(e, src, "Caught in SNPC cooking module")
doing &= ~SNPC_SPECIAL
// END COOKING MODULE