core/br2-external: report better error messages
authorYann E. MORIN <yann.morin.1998@free.fr>
Fri, 22 May 2020 21:39:05 +0000 (23:39 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Mon, 15 Jun 2020 09:01:54 +0000 (11:01 +0200)
The error is misleading: it reports that no name was provided,
when in fact the external.desc file is missing.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>p
Reviewed-by: Romain Naour <romain.naour@gmail.com>
support/scripts/br2-external

index fdea5aa2511e365c9e7234ffad15a77a1cf670d6..ededd2d900cdc00aedd5a276f1abc7eb78d3abdb 100755 (executable)
@@ -75,7 +75,7 @@ do_validate_one() {
         error "'%s': permission denied\n" "${br2_ext}"
     fi
     if [ ! -f "${br2_ext}/external.desc" ]; then
-        error "'%s': does not have a name (in 'external.desc'). See %s\n" \
+        error "'%s': does not have an 'external.desc'. See %s\n" \
             "${br2_ext}" "${MANUAL_URL}"
     fi
     br2_name="$(sed -r -e '/^name: +(.*)$/!d; s//\1/' "${br2_ext}/external.desc")"