]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_animation.py
Improve error reporting in the Blender exporter
[libs/gl.git] / blender / io_mspgl / export_animation.py
index 90d5d4125197d0557741febe92eb75d311181778..3f174e549ba8d616542314e27a7cc36830ebae29 100644 (file)
@@ -40,9 +40,9 @@ class AnimationExporter:
                else:
                        anim_data = context.active_object.animation_data
                        if not anim_data:
-                               raise Exception("Object has no animation data")
+                               raise Exception("Object {} has no animation data".format(context.active_object.name))
                        if not anim_data.action:
-                               raise Exception("No active action")
+                               raise Exception("Object {} has no active action".format(context.active_object.name))
 
                        resource = self.export_animation(context, anim_data.action)