Line Numbers for errors in User Defined Function

This request is to assist in debugging a UDF that is stored with Fauna.

In the position field Errors should contain the line number corresponding to the line number of the error inside the function’s entry in the Function area of the dashboard.

I know the error is around a lambda, but I have a few lambdas in my function over 130 lines…a line number would save a lot of time, (Bonus points for a link to the dashboard going directly to the line inside Function tab).

>  responseRaw: '{\n' +
>       '  "errors": [\n' +
>       '    {\n' +
>       '      "position": [  ],\n' +
>       '      "code": "call error",\n' +
>       '      "description": "Calling the function resulted in an error.",\n' +
>       '      "cause": [\n' +
>       '        {\n' +
>       '          "position": [ "lambda" ],\n' +
>       '          "code": "invalid argument",\n' +
>       '          "description": "Lambda expects an array with 2 elements. Array contains 4."\n' +

To illustrate: the proposed improvement would be:

>       '      "cause": [\n' +
>       '        {\n' +
>       '          "position": **Line 78** [ "lambda" ],\n' +
>       '          "code": "invalid argument",\n' +
>       '          "description": "Lambda expects an array with 2 elements. Array contains 4."\n' +

Which would correspond to line 78 in my dashboard here:


Bonus points, if it supplied a link to the dashboard at line 78 of this function for this database ‘comments-spec’ (which happens to be a child of fiduc).

Thank you :slight_smile: