From 4688804bbc80e30946f4958447c426f8e41f7f78 Mon Sep 17 00:00:00 2001 From: Tim Miller Date: Wed, 30 Jan 2013 16:07:02 -0800 Subject: [PATCH] Improve error message for missing element. Change-Id: I80beae77874e36d7f47880b030c225100b102e95 --- lib/common-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common-functions b/lib/common-functions index 09e3222d..28a91750 100644 --- a/lib/common-functions +++ b/lib/common-functions @@ -39,7 +39,7 @@ function save_image () { function generate_hooks () { mkdir -p $TMP_HOOKS_PATH for _ELEMENT in $IMAGE_ELEMENT ; do - [ -d $ELEMENTS_DIR/$_ELEMENT ] || die "The element does not exist." ; + [ -d $ELEMENTS_DIR/$_ELEMENT ] || die "Element $_ELEMENT does not exist." ; cp -t $TMP_HOOKS_PATH -a $ELEMENTS_DIR/$_ELEMENT/* ; done }