Adds some crash reports to character loading (#20847)

* runtime solver

* im stupid and forgot how to use stack trace

* Im stupid and commited the wrong file
This commit is contained in:
Contrabang
2023-04-22 03:43:45 -04:00
committed by GitHub
parent 51ad2070a5
commit 80dffdc225

View File

@@ -457,11 +457,15 @@
//Sanitize
var/datum/species/SP = GLOB.all_species[species]
if(!SP)
stack_trace("Couldn't find a species matching [species], character name is [real_name].")
metadata = sanitize_text(metadata, initial(metadata))
real_name = reject_bad_name(real_name, TRUE)
if(isnull(species))
species = "Human"
stack_trace("Character doesn't have a species, character name is [real_name]. Defaulting to human.")
if(isnull(language))
language = "None"