diff --git a/srcpkgs/avahi-discover/template b/srcpkgs/avahi-discover/template
index 629e5e9d8b..40a36f1ac8 100644
--- a/srcpkgs/avahi-discover/template
+++ b/srcpkgs/avahi-discover/template
@@ -32,7 +32,7 @@ depends="avahi>=$version python avahi-python>=$version dbus-python pygtk desktop
 pycompile_module="avahi_discover"
 
 if [ "$CROSS_BUILD" ]; then
-	msg_error "$pkgver: this package is not cross buildable currently.\n"
+	msg_error "${pkgname}-${version}: this package is not cross buildable currently.\n"
 fi
 
 pre_configure() {