mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
Just change the error message in the select boundary tool to emphasize it's probably not the user's fault
This commit is contained in:
parent
d1f6350b89
commit
1661957511
@ -195,10 +195,7 @@ impl Partitioning {
|
|||||||
if new_neighborhood_blocks.len() != 1 {
|
if new_neighborhood_blocks.len() != 1 {
|
||||||
// This happens when a hole would be created by adding this block. There are probably
|
// This happens when a hole would be created by adding this block. There are probably
|
||||||
// some smaller blocks nearby to add first.
|
// some smaller blocks nearby to add first.
|
||||||
bail!(
|
bail!("Couldn't add block -- you may need to add an intermediate block first to avoid a hole, or there's a bug you can't workaround yet");
|
||||||
"You must first add intermediate blocks to avoid splitting this neighborhood into {} pieces",
|
|
||||||
new_neighborhood_blocks.len()
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
let new_neighborhood_block = new_neighborhood_blocks.pop().unwrap();
|
let new_neighborhood_block = new_neighborhood_blocks.pop().unwrap();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user