Replaces EXCEPTION() with stack_trace() and CRASH()

This commit is contained in:
Ghommie
2020-03-05 01:47:04 +01:00
parent 7a539d0a78
commit bb7bfc04cc
18 changed files with 24 additions and 33 deletions
+3 -3
View File
@@ -78,12 +78,12 @@ in their list
/proc/list_to_object(var/list/data, var/loc)
if(!islist(data))
throw EXCEPTION("You didn't give me a list, bucko")
stack_trace("You didn't give me a list, bucko")
if(!("type" in data))
throw EXCEPTION("No 'type' field in the data")
stack_trace("No 'type' field in the data")
var/path = text2path(data["type"])
if(!path)
throw EXCEPTION("Path not found: [path]")
stack_trace("Path not found: [path]")
var/atom/movable/thing = new path(loc)
thing.deserialize(data)