Actually, keep the broken list of ways, to manually run with backtraces

This commit is contained in:
Dustin Carlino 2021-07-20 11:31:44 -07:00
parent 8dff4c5da5
commit c5210e9887
2 changed files with 6 additions and 2 deletions

View File

@ -1087,6 +1087,11 @@ fn reimport_map(
Box::new(|ctx, app, success, _| {
if !success {
if let Some(ways) = rollback {
if let Err(err) =
std::fs::copy("merge_osm_ways.json", "BROKEN_merge_osm_ways.json")
{
warn!("No merged road file? {}", err);
}
abstio::write_json("merge_osm_ways.json".to_string(), &ways);
}
}

View File

@ -564,8 +564,7 @@ fn on_off_ramp(
}
roads.get_mut(&thin.id).unwrap().trimmed_center_pts = trimmed_thin;
// Trim the thick
// extra ends at the intersection
// Trim the thick extra ends at the intersection
let extra = if roads[&thick_id].dst_i == i {
roads[&thick_id]
.trimmed_center_pts