Merge pull request #43215 from AutomaticFrenzy/patch/throw-exception

Replace 'throw EXCEPTION' with CRASH or WARNING
This commit is contained in:
ShizCalev
2019-03-21 23:57:27 -04:00
committed by GitHub
16 changed files with 24 additions and 24 deletions
+1 -1
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
+2 -2
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])"