diff --git a/pd/src/m_obj.c b/pd/src/m_obj.c
index 38a87cfac2ebea293b8d5e430590a35f484e513b..725ecf42514a51b4d7274165ecd502d0611070e1 100644
--- a/pd/src/m_obj.c
+++ b/pd/src/m_obj.c
@@ -76,9 +76,8 @@ char *type_hint(t_symbol *s, int argc, t_atom *argv, int dostof);
 
 static void inlet_wrong(t_inlet *x, t_symbol *s, int argc, t_atom *argv)
 {
-    pd_error(x->i_owner, "inlet of %s: expected '%s' but got '%s'%s",
-        (char *)class_getname(*(x->i_dest)), x->i_symfrom->s_name, s->s_name, 
-        type_hint(s, argc, argv, 1));
+    pd_error(x->i_owner, "inlet: expected '%s' but got '%s'%s",
+        x->i_symfrom->s_name, s->s_name, type_hint(s, argc, argv, 1));
 }
 
     /* forward a message to an inlet~ object */