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>
This commit is contained in:
Kapu1178
2023-06-18 16:09:57 +08:00
committed by GitHub
co-authored by LemonInTheDark
parent a913f0859d
commit bc05f4fc9e
+3 -1
View File
@@ -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)