mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-07-08 01:31:53 +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)?;
|
file.write_all_at(str.pos, &encoded)?;
|
||||||
m = mes.next();
|
m = mes.next();
|
||||||
}
|
}
|
||||||
|
if m.is_some() || mes.next().is_some() {
|
||||||
|
return Err(anyhow::anyhow!("Too many messages provided."));
|
||||||
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user