From af96d720e9340e02b1ec6dafe10bf9a47e045804 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Thu, 7 Sep 2023 13:25:47 -0400 Subject: improve params errors (#2437) --- lib/stitches/meander_fill.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/stitches/meander_fill.py') diff --git a/lib/stitches/meander_fill.py b/lib/stitches/meander_fill.py index f6106606..c1308bf4 100644 --- a/lib/stitches/meander_fill.py +++ b/lib/stitches/meander_fill.py @@ -1,7 +1,6 @@ from itertools import combinations import networkx as nx -from inkex import errormsg from shapely.geometry import LineString, MultiPoint, Point from shapely.ops import nearest_points @@ -30,10 +29,8 @@ def meander_fill(fill, shape, original_shape, shape_index, starting_point, endin graph = tile.to_graph(shape, fill.meander_scale, fill.meander_angle) if not graph: - label = fill.node.label or fill.node.get_id() - errormsg(_('%s: Could not build graph for meander stitching. Try to enlarge your shape or ' - 'scale your meander pattern down.') % label) - return [] + fill.fatal(_('Could not build graph for meander stitching. Try to enlarge your shape or ' + 'scale your meander pattern down.')) debug.log_graph(graph, 'Meander graph') ensure_connected(graph) -- cgit v1.2.3