- in the panelize, cutout and geocutout Tcl commands updated the error strings and made sure that if an error occur then a potential script execution in chain is aborted

This commit is contained in:
Marius Stanciu
2022-01-29 16:24:29 +02:00
committed by Marius
parent a0fb8b5413
commit 54def9a426
5 changed files with 23 additions and 16 deletions

View File

@@ -67,8 +67,8 @@ class TclCommandCutout(TclCommand):
name = args['name']
else:
self.app.inform.emit(
"[WARNING]The name of the object for which cutout is done is missing. Add it and retry.")
return
"[WARNING] The name of the object for which cutout is done is missing. Add it and retry.")
return "fail"
if 'margin' in args:
margin_par = float(args['margin'])
@@ -102,8 +102,9 @@ class TclCommandCutout(TclCommand):
try:
obj = self.app.collection.get_by_name(str(name))
except Exception as e:
log.error("TclCommandCutout.execute() --> %s" % str(e))
return "Could not retrieve object: %s" % name
self.app.log.error("TclCommandCutout.execute(). Missing object: --> %s" % str(e))
self.app.log.debug("Could not retrieve object: %s" % name)
return "fail"
def geo_init_me(geo_obj, app_obj):
geo_obj.multigeo = False