- 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

@@ -11395,7 +11395,7 @@ class MenuFileHandlers(QtCore.QObject):
self.log.debug("open_gerber()")
if not os.path.exists(filename):
self.inform.emit('[ERROR_NOTCL] %s' % _("File no longer available."))
self.inform.emit('[ERROR_NOTCL] %s. %s' % (filename, _("File no longer available.")))
return
with self.app.proc_container.new('%s...' % _("Opening")):
@@ -11433,7 +11433,7 @@ class MenuFileHandlers(QtCore.QObject):
self.log.debug("open_excellon()")
if not os.path.exists(filename):
self.inform.emit('[ERROR_NOTCL] %s' % _("File no longer available."))
self.inform.emit('[ERROR_NOTCL] %s. %s' % (filename, _("File no longer available.")))
return
# How the object should be initialized