--- grammar.y_original	2006-07-20 15:40:53.000000000 -0400
+++ grammar.y	2006-07-20 15:41:13.000000000 -0400
@@ -422,6 +422,14 @@
       gst_parse_element_lock (link->sink, FALSE);
     g_free (link);
   }
+  else
+  {
+    GST_ELEMENT_ERROR(src, CORE, CAPS,
+                      (_("Could not link elements %s %s"), 
+                      GST_STR_NULL (GST_ELEMENT_NAME (src)), 
+                      GST_STR_NULL (GST_ELEMENT_NAME (link->sink))), 
+                      NULL);
+  }
 }
 /* both padnames and the caps may be NULL */
 static gboolean
