diff --git a/helpers.moon b/helpers.moon index afc8240..662c3cf 100644 --- a/helpers.moon +++ b/helpers.moon @@ -4,7 +4,9 @@ import max from math api = (tab) -> json_params capture_errors { - respond_to(tab), + => + result = respond_to(tab) + return json: result, on_error: => status = 400 errors = {}