diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py index f38b04999ef7aec2f151ed925934a7f21381cc7a..2b5bf3be3993df26c3d22c72f0d525086b6741f8 100644 --- a/io_scene_fbx/import_fbx.py +++ b/io_scene_fbx/import_fbx.py @@ -925,9 +925,11 @@ def load(operator, context, filepath="", fbx_connections = elem_find_first(elem_root, b'Connections') if fbx_nodes is None: - return print("no 'Objects' found") + operator.report({'ERROR'}, "No 'Objects' found in file %r" % filepath) + return {'CANCELLED'} if fbx_connections is None: - return print("no 'Connections' found") + operator.report({'ERROR'}, "No 'Connections' found in file %r" % filepath) + return {'CANCELLED'} # ---- # First load property templates