We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
currently we use the assert
assert
assert(type(to) == 'string', "to is required!")
this will break the lua contract, and from frontend just get the error in a console format with color code, some kind like this:
in function '.process.handle'\u001b[0m\n\n\u001b[31merror:\n\u001b[0m[string \".handlers\"]:559: [string \"aos\"]:138: to is required!"
maybe we can have another field like rawError and can append into the response for frontend?
rawError
{ ... the same as old output response, "rawError": "to is requred!" }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
currently we use the
assert
this will break the lua contract, and from frontend just get the error in a console format with color code, some kind like this:
maybe we can have another field like
rawError
and can append into the response for frontend?The text was updated successfully, but these errors were encountered: