fix(@magic-civilization): 🐛 update unknown unit error formatting
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
41dba0be80
commit
7d9a8f2b12
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue