diff --git a/subway_structure.py b/subway_structure.py index 78b21a1..e4ade6b 100644 --- a/subway_structure.py +++ b/subway_structure.py @@ -581,8 +581,12 @@ class Route: self.stops[si+1].stop, self.stops[si+2].stop) if angle < MIN_ANGLE_BETWEEN_STOPS: - city.error('Angle between stops {} and {} is too narrow'.format( - self.stops[si].stoparea.name, self.stops[si+2].stoparea.name), relation) + msg = 'Angle between stops around "{}" is too narrow, {} degrees'.format( + self.stops[si+1].stoparea.name, angle) + if angle < 20: + city.error(msg, relation) + else: + city.warn(msg, relation) def __len__(self): return len(self.stops)