From 06bac38f954d348a1bd8117bba5e9640ad804212 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 13 May 2021 15:40:01 +0200 Subject: [PATCH] [MIRROR] Preserve out of resources runtimes. (#5625) * Preserve out of resources runtimes. (#59049) Knowing what lines triggered this bug will help me nag lummox, but the runtime never made it to logs because world/Error would runtime on log_game and Reboot() I need to know if its list creation or list expansion or both. * Preserve out of resources runtimes. Co-authored-by: Kyle Spier-Swenson --- code/modules/error_handler/error_handler.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/error_handler/error_handler.dm b/code/modules/error_handler/error_handler.dm index 5c749a76cae..7565e62eb06 100644 --- a/code/modules/error_handler/error_handler.dm +++ b/code/modules/error_handler/error_handler.dm @@ -20,11 +20,11 @@ GLOBAL_VAR_INIT(total_runtimes_skipped, 0) return //this will never happen. else if(copytext(E.name, 1, 18) == "Out of resources!")//18 == length() of that string + 1 - log_world("BYOND out of memory. Restarting") - log_game("BYOND out of memory. Restarting") + log_world("BYOND out of memory. Restarting ([E?.file]:[E?.line])") TgsEndProcess() + . = ..() Reboot(reason = 1) - return ..() + return if (islist(stack_trace_storage)) for (var/line in splittext(E.desc, "\n"))