mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-07 21:38:58 +08:00
Add a warning counter
This commit is contained in:
@@ -123,6 +123,7 @@ pub fn encode_string(cp: u32, data: &str, check: bool) -> Result<Vec<u8>, WinErr
|
||||
"Warning: Some characters could not be encoded in code page {}: {}",
|
||||
cp, data
|
||||
);
|
||||
crate::COUNTER.inc_warning();
|
||||
}
|
||||
}
|
||||
if result == 0 {
|
||||
|
||||
Reference in New Issue
Block a user