Skip to content
New issue

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

Allow messages as well as error codes in response to EXEC messages #2

Open
amcewen opened this issue Dec 27, 2022 · 0 comments
Open

Comments

@amcewen
Copy link

amcewen commented Dec 27, 2022

The wire protocol allows for a message to be returned along with a failure message when you invoke a specific step. The wire-server treats any non-0 response from an EXEC call to be a fail, and includes an error message but it's just a generic "Failed with $error_code".

It will be useful for more descriptive errors to be returned, and they would (/could - maybe there could also be an error lookup in the wire-server?) be best defined in the firmware running on the microcontroller.

The wire-server should expect an error-code initially, and then the remainder of the line should be assumed to be a message to return alongside the failure response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant