From 241d52f0ad287e3216cd26e2fd03f35aa352843b Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 14 Dec 2023 17:51:19 +0500 Subject: [PATCH] small error message fix as it appears as one of the messages during .ifc load, that way it will be more clear that it's related to external styles --- src/blenderbim/blenderbim/bim/module/style/operator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/style/operator.py b/src/blenderbim/blenderbim/bim/module/style/operator.py index d59bfc18f8..897495610d 100644 --- a/src/blenderbim/blenderbim/bim/module/style/operator.py +++ b/src/blenderbim/blenderbim/bim/module/style/operator.py @@ -324,16 +324,16 @@ class ActivateExternalStyle(bpy.types.Operator, tool.Ifc.Operator): style_path = Path(tool.Ifc.resolve_uri(external_style.Location)) if style_path.suffix != ".blend": - self.report({"ERROR"}, f"Only Blender external styles are supported") + self.report({"ERROR"}, f"Error loading external style - only Blender external styles are supported") return {"CANCELLED"} if not style_path.exists(): - self.report({"ERROR"}, f"File not found:\n'{style_path}'") + self.report({"ERROR"}, f"Error loading external style - cannot find file: '{style_path}'") return {"CANCELLED"} db = tool.Blender.append_data_block(str(style_path), data_block_type, data_block) if not db["data_block"]: - self.report({"ERROR"}, db["msg"]) + self.report({"ERROR"}, f"Error loading external style - {db['msg']}") return {"CANCELLED"} self.copy_material_attributes(db["data_block"], material)