Skip to content

refactor: better error message display#1405

Merged
Flouse merged 1 commit intomainfrom
yangby/refactor/better-error-messages
Sep 5, 2023
Merged

refactor: better error message display#1405
Flouse merged 1 commit intomainfrom
yangby/refactor/better-error-messages

Conversation

@chaoticlonghair
Copy link
Copy Markdown
Contributor

@chaoticlonghair chaoticlonghair commented Sep 5, 2023

What this PR does / why we need it?

As rust-std docs said:

  • Display trait is for user-facing output.
  • Debug trait is to facilitate debugging Rust code.

So, as user-facing error messages, the Display is better than Debug.

What is the impact of this PR?

No Breaking Change

CI Settings

CI Usage

Tip: Check the CI you want to run below, and then comment /run-ci.

CI Switch

  • E2E Tests
  • Web3 Compatible Tests
  • OCT 1-5 And 12-15
  • OCT 6-10
  • OCT 11
  • OCT 16-19
  • v3 Core Tests

CI Description

CI Name Description
Chaos CI Test the liveness and robustness of Axon under terrible network condition
Cargo Clippy Run cargo clippy --all --all-targets --all-features
Coverage Test Get the unit test coverage report
E2E Test Run end-to-end test to check interfaces
Code Format Run cargo +nightly fmt --all -- --check and cargo sort -gwc
Web3 Compatible Test Test the Web3 compatibility of Axon
v3 Core Test Run the compatibility tests provided by Uniswap V3
OCT 1-5 | 6-10 | 11 | 12-15 | 16-19 Run the compatibility tests provided by OpenZeppelin

@chaoticlonghair chaoticlonghair requested a review from a team as a code owner September 5, 2023 07:51
@chaoticlonghair chaoticlonghair force-pushed the yangby/refactor/better-error-messages branch from 43f5bb3 to c948b66 Compare September 5, 2023 07:53
@chaoticlonghair

This comment was marked as off-topic.

@github-actions

This comment was marked as outdated.

@chaoticlonghair chaoticlonghair force-pushed the yangby/refactor/better-error-messages branch from c948b66 to ffe17f0 Compare September 5, 2023 08:33
@chaoticlonghair

This comment was marked as off-topic.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 5, 2023

CI tests run on commit:

CI test list:

  • E2E Tests
  • OCT 1-5 And 12-15
  • OCT 6-10
  • OCT 11
  • OCT 16-19
  • v3 Core Tests
  • Web3 Compatible Tests

Please check ci test results later.

@Flouse Flouse merged commit 99c6f8f into main Sep 5, 2023
@Flouse Flouse deleted the yangby/refactor/better-error-messages branch September 5, 2023 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants