[Toaster] [PATCH] toaster: Improve messaging when conf file not found
Belen Barros Pena
belen.barros.pena at linux.intel.com
Fri Nov 6 04:25:48 PST 2015
From: Belen Barros Pena <belen.barros.pena at intel.com>
If the toasterconf.json file specified in TOASTER_CONF
does not exist, you get a message asking you to set
TOASTER_CONF to the path of a valid configuration file.
The message, however, doesn't tell you where to set
TOASTER_CONF. Specify that you set TOASTER_CONF in the
bitbake/bin/toaster script to save people the proverbial
grepping.
Signed-off-by: Belen Barros Pena <belen.barros.pena at intel.com>
---
bitbake/bin/toaster | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index 2c3432c..db02bc3 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -200,7 +200,7 @@ if [ "$TOASTER_CONF" = "" ]; then
export TOASTER_CONF=$(python -c "import os; print os.path.realpath('$TOASTER_CONF')")
fi
if [ ! -f $TOASTER_CONF ]; then
- echo "$TOASTER_CONF configuration file not found. set TOASTER_CONF to specify a path"
+ echo "$TOASTER_CONF configuration file not found. Set the TOASTER_CONF variable in the \"bitbake/bin/toaster\" script to specify the path to a Toaster configuration file."
[ "$TOASTER_MANAGED" = '1' ] && exit 1 || return 1
fi
# this defines the dir toaster will use for
--
2.4.9 (Apple Git-60)
More information about the toaster
mailing list