Skip to content
Browse files

Merge pull request #159 from inhies/patch-4

No error via admin interface for function list
  • Loading branch information...
2 parents cc597c5 + cb4aff7 commit a24efcb9f55a7489b173c858a3d3d2ac1c0bd788 Caleb James DeLisle committed Dec 18, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 admin/Admin.c
View
11 admin/Admin.c
@@ -363,10 +363,13 @@ static void handleRequest(Dict* messageDict,
if (noFunctionsCalled) {
Dict* d = Dict_new(allocator);
- Dict_putString(d,
- String_CONST("error"),
- String_CONST("No functions matched your request."),
- allocator);
+ String* list = String_CONST("availableFunctions");
+ if (!String_equals(query, list)) {
+ Dict_putString(d,
+ String_CONST("error"),
+ String_CONST("No functions matched your request."),
+ allocator);
+ }
Dict* functions = Dict_new(allocator);
for (int i = 0; i < admin->functionCount; i++) {
Dict_putDict(functions, admin->functions[i].name, admin->functions[i].args, allocator);

0 comments on commit a24efcb

Please sign in to comment.
Something went wrong with that request. Please try again.