mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-07 05:18:44 +08:00
Add some check
This commit is contained in:
@@ -300,6 +300,9 @@ impl Script for Ws2Script {
|
||||
file.write_all_at(str.pos, &encoded)?;
|
||||
m = mes.next();
|
||||
}
|
||||
if m.is_some() || mes.next().is_some() {
|
||||
return Err(anyhow::anyhow!("Too many messages provided."));
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user