From 2d43df19a347f295ce1b79293c633942eb45e335 Mon Sep 17 00:00:00 2001 From: "Morgan 'ARR\\!' Allen" Date: Wed, 29 Mar 2023 21:22:47 -0700 Subject: [PATCH] return useful error message if file is not found --- src/Mod/Path/Path/Op/Custom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/Path/Op/Custom.py b/src/Mod/Path/Path/Op/Custom.py index 0881eb3d46..0e8813dd52 100644 --- a/src/Mod/Path/Path/Op/Custom.py +++ b/src/Mod/Path/Path/Op/Custom.py @@ -114,7 +114,8 @@ class ObjectCustom(PathOp.ObjectOp): gcode_file = self.findGcodeFile(obj.GcodeFile) # could not determine the path - if not gcode_file: return + if not gcode_file: + Path.Log.error(translate("PathCustom", "Custom file %s could not be found.") % obj.GcodeFile) with open(gcode_file) as fd: for l in fd.readlines():