Skip to content

Unified error code #81

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

Merged
merged 8 commits into from
Apr 7, 2021
Merged

Conversation

MandssS
Copy link
Contributor

@MandssS MandssS commented Apr 7, 2021

Describe what this PR does / why we need it

At present, the error codes of the replies are messy, which requires unified and refactoring.

Does this pull request fix one issue?

Fixes chaosblade-io/chaosblade#489

Describe how you did it

Unified error code structure and error content

@xcaspar xcaspar self-requested a review April 7, 2021 07:29
@xcaspar xcaspar added this to the v1.1.0 milestone Apr 7, 2021
@xcaspar xcaspar merged commit 7454a49 into chaosblade-io:v1.1.0-dev Apr 7, 2021
xcaspar added a commit that referenced this pull request Apr 7, 2021
* fixbug: Under some systems, processes cannot exit using kill -HUP

Signed-off-by: tiny.x <[email protected]>

* chore: update version to 0.9.0

Signed-off-by: tiny.x <[email protected]>

* unify errno: 1. add check cmd exist or not before exec cmd. 2. change errno from old number to new number. 3. add log

* fix bug: return response use new error no,and add log

* unify errno: 1. add check cmd exist or not before exec cmd. 2. change errno from old number to new number. 3. add log

* edit "ChannelNil" and "OsCmdExecFailed" response, delete result, only return code and error message

Co-authored-by: tiny.x <[email protected]>
Co-authored-by: camix <[email protected]>
Co-authored-by: xcaspar <[email protected]>
tiny-x added a commit that referenced this pull request May 31, 2021
* fixbug: Under some systems, processes cannot exit using kill -HUP

Signed-off-by: tiny.x <[email protected]>

* chore: update version to 0.9.0

Signed-off-by: tiny.x <[email protected]>

* unify errno: 1. add check cmd exist or not before exec cmd. 2. change errno from old number to new number. 3. add log

* fix bug: return response use new error no,and add log

* unify errno: 1. add check cmd exist or not before exec cmd. 2. change errno from old number to new number. 3. add log

* edit "ChannelNil" and "OsCmdExecFailed" response, delete result, only return code and error message

Co-authored-by: tiny.x <[email protected]>
Co-authored-by: camix <[email protected]>
Co-authored-by: xcaspar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants