aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-12-14 16:20:50 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-12-14 16:20:50 +0100
commit3066dda4e4e4be70335ca2dfbc74a20f4ff0dede (patch)
tree9d152b7127d878f740023af2fd3a8307d38f2f89
parentd053f7af201318c3e09fb8accf28f1cb94e6e2e8 (diff)
afb-hsrv: Adds an error when alias dir doesn't exist
Change-Id: Iab0f9b1997f6471ceab8bb43be07d6d00c53fd78 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-hsrv.c2
1 files changed, 1 insertions, 1 deletions
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);