From f550197032efd10bd501850763ad2fe9a4bd1e41 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 18 Sep 2021 02:12:48 +0300 Subject: [PATCH] Improve exceptions in armature lookups --- source/animation/armature.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/animation/armature.cpp b/source/animation/armature.cpp index f339ea2a..d8512d82 100644 --- a/source/animation/armature.cpp +++ b/source/animation/armature.cpp @@ -17,7 +17,7 @@ const Armature::Link &Armature::get_link(unsigned index) const for(const Link &l: links) if(l.get_index()==index) return l; - throw key_error(typeid(list)); + throw key_error(index); } const Armature::Link &Armature::get_link(const string &name) const @@ -25,7 +25,7 @@ const Armature::Link &Armature::get_link(const string &name) const for(const Link &l: links) if(l.get_name()==name) return l; - throw key_error(typeid(list)); + throw key_error(name); } unsigned Armature::get_max_link_index() const -- 2.45.2