Skip to content

refactor(drive): change error messages to String - #1839

Closed
pauldelucia wants to merge 161 commits into
masterfrom
feat/change-drive-error-messages-to-strings
Closed

refactor(drive): change error messages to String#1839
pauldelucia wants to merge 161 commits into
masterfrom
feat/change-drive-error-messages-to-strings

Conversation

@pauldelucia

Copy link
Copy Markdown
Member

Issue being fixed or feature implemented

Change all the error messages in rs-drive from str to String

What was done?

Change all the error messages in rs-drive from str to String

How Has This Been Tested?

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

lklimek and others added 30 commits November 27, 2023 12:53
Co-authored-by: Ivan Shumkov <ivan@shumkov.ru>
…-check (#1647)

Co-authored-by: Ivan Shumkov <ivan@shumkov.ru>
…ommitted (#1663)

Co-authored-by: Quantum Explorer <quantum@dash.org>
Co-authored-by: QuantumExplorer <quantum@dash.org>
Co-authored-by: QuantumExplorer <quantum@dash.org>
Co-authored-by: Odysseas Gabrielides <odysseas.gabrielides@gmail.com>
Co-authored-by: Ivan Shumkov <ivan@shumkov.ru>
Co-authored-by: Odysseas Gabrielides <odysseas.gabrielides@gmail.com>
Co-authored-by: Ivan Shumkov <ivan@shumkov.ru>
pauldelucia and others added 24 commits April 13, 2024 09:37
Co-authored-by: Quantum Explorer <quantum@dash.org>
Co-authored-by: Quantum Explorer <quantum@dash.org>
@shumkov shumkov changed the title chore(drive): change error messages to String refactor(drive): change error messages to String May 13, 2024
)?
.ok_or(Error::Query(QuerySyntaxError::DataContractNotFound(
"contract not found",
"contract not found".to_string(),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use https://docs.rs/thiserror-ext/latest/thiserror_ext/derive.Construct.html so you can pass both Strings and &str to constructors

@shumkov
shumkov changed the base branch from v1.0-dev to master August 25, 2024 06:05
@pauldelucia
pauldelucia deleted the feat/change-drive-error-messages-to-strings branch September 12, 2024 03:14
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

Successfully merging this pull request may close these issues.

9 participants