Break the ValueNode 'bad type' error messages up so less translation needs doing.
[synfig.git] / synfig-core / trunk / src / synfig / valuenode_subtract.cpp
index 7867023..c018d43 100644 (file)
@@ -90,7 +90,7 @@ synfig::ValueNode_Subtract::ValueNode_Subtract(const ValueBase &value):
                break;
        default:
                assert(0);
-               throw runtime_error(_("synfig::ValueNode_Subtract:Bad type ")+ValueBase::type_local_name(id));
+               throw runtime_error(get_local_name()+_(":Bad type ")+ValueBase::type_local_name(id));
        }
 
        assert(get_lhs()->get_type()==id);