summaryrefslogtreecommitdiff
path: root/lib/stitches
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2023-09-07 13:25:47 -0400
committerGitHub <noreply@github.com>2023-09-07 19:25:47 +0200
commitaf96d720e9340e02b1ec6dafe10bf9a47e045804 (patch)
treea49d9b1570050db02ff8f17b754e54ec7b9a6e1a /lib/stitches
parent3db335b0f41ebfcc694914bba5bf81aed9ae98d4 (diff)
improve params errors (#2437)
Diffstat (limited to 'lib/stitches')
-rw-r--r--lib/stitches/meander_fill.py7
1 files changed, 2 insertions, 5 deletions
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)