Replace 'throw EXCEPTION' with CRASH or WARNING

This commit is contained in:
Tad Hardesty
2019-03-19 23:09:24 -07:00
parent feff549c55
commit 570a4da33e
16 changed files with 24 additions and 24 deletions

View File

@@ -23,7 +23,7 @@ GLOBAL_PROTECT(protected_ranks)
name = init_name
if(!name)
qdel(src)
throw EXCEPTION("Admin rank created without name.")
CRASH("Admin rank created without name.")
return
if(init_rights)
rights = init_rights

View File

@@ -39,11 +39,11 @@ GLOBAL_PROTECT(href_token)
return
if(!ckey)
QDEL_IN(src, 0)
throw EXCEPTION("Admin datum created without a ckey")
CRASH("Admin datum created without a ckey")
return
if(!istype(R))
QDEL_IN(src, 0)
throw EXCEPTION("Admin datum created without a rank")
CRASH("Admin datum created without a rank")
return
target = ckey
name = "[ckey]'s admin datum ([R])"