summaryrefslogtreecommitdiff
path: root/res/ari/resource_channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/ari/resource_channels.c')
-rw-r--r--res/ari/resource_channels.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/ari/resource_channels.c b/res/ari/resource_channels.c
index 0ac53dd73..5b63b4822 100644
--- a/res/ari/resource_channels.c
+++ b/res/ari/resource_channels.c
@@ -964,7 +964,8 @@ void ast_ari_channels_get_channel_var(struct ast_variable *headers,
if (args->variable[strlen(args->variable) - 1] == ')') {
if (ast_func_read2(channel, args->variable, &value, 0)) {
- ast_ari_response_alloc_failed(response);
+ ast_ari_response_error(
+ response, 500, "Unable to read provided function");
return;
}
} else {