aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-05-13 12:43:13 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-05-13 12:43:13 +0200
commitb5cf93aed93e7f331eb645c8afe5317fb67ee50e (patch)
tree3010b0c411d6f7d64e4c35882ea1df1bf99eb301 /plugins
parent09b02c50df8ae0d87ce7b3e5e092eb93086f5f1e (diff)
new verbose and clean up
Change-Id: I5217b216d706fd0286c8754e966bca3965d4ea62 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/samples/SamplePost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/samples/SamplePost.c b/plugins/samples/SamplePost.c
index cfb0c591..2dc09661 100644
--- a/plugins/samples/SamplePost.c
+++ b/plugins/samples/SamplePost.c
@@ -49,7 +49,7 @@ static void Uploads (struct afb_req request, const char *destination)
{
struct afb_arg a = afb_req_get(request, "file");
if (a.value == NULL || *a.value == 0)
- afb_req_fail_f(request, "failed", "no file selected");
+ afb_req_fail(request, "failed", "no file selected");
else
afb_req_success_f(request, NULL, "uploaded file %s of path %s for destination %s", a.value, a.path, destination);
}