Update warning message

This commit is contained in:
Dr. Dystopia 2021-12-20 12:33:51 +01:00
parent 1719ce8c16
commit 9b407b8aef

View File

@ -516,7 +516,11 @@ pub fn edit_character(
(body, char.body)
{
if new.species != old.species || new.body_type != old.body_type {
warn!("Should never happen due to client validation");
warn!(
"Character edit rejected due to failed validation - Character ID: {} \
Alias: {}",
character_id, character_alias
);
return Err(PersistenceError::CharacterDataError);
} else {
char.body = body;