From 3066dda4e4e4be70335ca2dfbc74a20f4ff0dede Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Wed, 14 Dec 2016 16:20:50 +0100 Subject: [PATCH] afb-hsrv: Adds an error when alias dir doesn't exist MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Iab0f9b1997f6471ceab8bb43be07d6d00c53fd78 Signed-off-by: José Bollo --- src/afb-hsrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afb-hsrv.c b/src/afb-hsrv.c index 030bec5b..56509c3c 100644 --- a/src/afb-hsrv.c +++ b/src/afb-hsrv.c @@ -366,7 +366,7 @@ int afb_hsrv_add_alias(struct afb_hsrv *hsrv, const char *prefix, int dirfd, con root = locale_root_create_at(dirfd, alias); if (root == NULL) { - /* TODO message */ + ERROR("can't connect to directory %s: %m", alias); rc = 0; } else { rc = afb_hsrv_add_alias_root(hsrv, prefix, root, priority, relax); -- 2.16.6