nginx / unit

NGINX Unit - universal web app server - a lightweight and versatile open source server that simplifies the application stack by natively executing application code across eight different programming language runtimes.
https://unit.nginx.org
Apache License 2.0
5.25k stars 321 forks source link

CLI: Refactor custom error structures #1246

Open avahahn opened 1 month ago

avahahn commented 1 month ago

Currently both unit-client-rs and unitctl use a custom error crate that is not only superfluous but also hard to read. It is reducing overall code quality. Removing it and implementing a non-external solution would lead to quicker, smaller builds and more readable code.

Unitctl (bearable): https://github.com/nginx/unit/blob/master/tools/unitctl/unitctl/src/unitctl_error.rs Unit-client-rs (abject disaster): https://github.com/nginx/unit/blob/master/tools/unitctl/unit-client-rs/src/unit_client.rs