From bc05f4fc9e3ed8b1c1f7d5dcc71ff04bdd0fa1f6 Mon Sep 17 00:00:00 2001 From: Kapu1178 <75460809+Kapu1178@users.noreply.github.com> Date: Sun, 18 Jun 2023 04:09:57 -0400 Subject: [PATCH] Fix debug code in progressbar.dm (#76106) ## About The Pull Request exceptions need to be thrown --------- Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> --- code/datums/progressbar.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/datums/progressbar.dm b/code/datums/progressbar.dm index a8fad8ac337..d4ff4496ac4 100644 --- a/code/datums/progressbar.dm +++ b/code/datums/progressbar.dm @@ -21,7 +21,9 @@ /datum/progressbar/New(mob/User, goal_number, atom/target) . = ..() if (!istype(target)) - EXCEPTION("Invalid target given") + stack_trace("Invalid target [target] passed in") + qdel(src) + return if(QDELETED(User) || !istype(User)) stack_trace("/datum/progressbar created with [isnull(User) ? "null" : "invalid"] user") qdel(src)