From 50a4192766dd96f383020f9b2989b047155e4db3 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Mon, 28 Oct 2013 09:36:31 +0000 Subject: - warn upon failed $-expansions --- src/util/configuration.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/util/configuration.c') diff --git a/src/util/configuration.c b/src/util/configuration.c index 195c70aa9..80ad02e36 100644 --- a/src/util/configuration.c +++ b/src/util/configuration.c @@ -1163,11 +1163,13 @@ expand_dollar (const struct GNUNET_CONFIGURATION_Handle *cfg, } if (NULL == env) { + start = GNUNET_strdup (start); if (erased_pos) *erased_pos = erased_char; - LOG (GNUNET_ERROR_TYPE_DEBUG, - "Expanded to `%s' (returning orig)\n", - orig); + LOG (GNUNET_ERROR_TYPE_WARNING, + _("Failed to expand `%s' in `%s' as it is neither found in [PATHS] nor defined as an environmental variable\n"), + start, orig); + GNUNET_free (start); return orig; } prefix = GNUNET_strdup (env); -- cgit v1.2.3