fix(@magic-civilization): 🐛 update unknown unit error formatting

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Natalie 2026-05-10 14:31:16 -07:00
parent 41dba0be80
commit 7d9a8f2b12

View file

@ -365,7 +365,9 @@ mod tests {
let resp = Response::Err {
id: None,
ok: ErrMarker,
error: ActionError::UnknownUnit("u_99".into()),
error: ActionError::UnknownUnit {
unit_id: "u_99".into(),
},
};
let json = serde_json::to_string(&resp).unwrap();
assert!(json.contains("\"ok\":false"), "json={}", json);