mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 15:08:34 +01:00
unify crash_with and stack_trace
This commit is contained in:
@@ -16,10 +16,10 @@ GLOBAL_VAR(managed_browser_id_ticker)
|
||||
|
||||
/datum/managed_browser/New(client/new_client)
|
||||
if(!new_client)
|
||||
crash_with("Managed browser object was not given a client.")
|
||||
stack_trace("Managed browser object was not given a client.")
|
||||
return
|
||||
if(!base_browser_id)
|
||||
crash_with("Managed browser object does not have a base browser id defined in its type.")
|
||||
stack_trace("Managed browser object does not have a base browser id defined in its type.")
|
||||
return
|
||||
|
||||
my_client = new_client
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
/datum/data/record/Destroy(var/force)
|
||||
if(data_core.locked.Find(src))
|
||||
if(!force)
|
||||
crash_with("Someone tried to qdel a record that was in data_core.locked [log_info_line(src)]")
|
||||
stack_trace("Someone tried to qdel a record that was in data_core.locked [log_info_line(src)]")
|
||||
return QDEL_HINT_LETMELIVE
|
||||
data_core.locked -= src
|
||||
data_core.medical -= src
|
||||
|
||||
@@ -67,5 +67,5 @@ var/repository/decls/decls_repository // Initialiozed in /datum/global_init/New(
|
||||
|
||||
/decl/Destroy()
|
||||
SHOULD_CALL_PARENT(FALSE)
|
||||
crash_with("Prevented attempt to delete a decl instance: [log_info_line(src)]")
|
||||
stack_trace("Prevented attempt to delete a decl instance: [log_info_line(src)]")
|
||||
return QDEL_HINT_LETMELIVE // Prevents decl destruction
|
||||
|
||||
Reference in New Issue
Block a user