Ported the TG's error handler (#19782)

Ported the TG's error handler system, which allows runtime errors to be
collected in a datum, browsed, and all the good stuffs
This commit is contained in:
Fluffy
2024-08-22 20:46:49 +00:00
committed by GitHub
parent 69dad41c14
commit c86be958de
10 changed files with 427 additions and 47 deletions
+11
View File
@@ -1561,6 +1561,17 @@
access_control_topic(href_list["access_control"])
return
else if(href_list["viewruntime"])
var/datum/error_viewer/error_viewer = locate(href_list["viewruntime"])
if(!istype(error_viewer))
to_chat(usr, SPAN_WARNING("That runtime viewer no longer exists."), confidential = TRUE)
return
if(href_list["viewruntime_backto"])
error_viewer.show_to(owner, locate(href_list["viewruntime_backto"]), href_list["viewruntime_linear"])
else
error_viewer.show_to(owner, null, href_list["viewruntime_linear"])
/mob/living/proc/can_centcom_reply()
return 0