Skip to content

Commit

Permalink
Add NotFound error (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
shapeshed committed May 1, 2024
1 parent 5b69d30 commit e7653d7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.1] - 2014-05-01

### Added

- Add `ContractError::NotFound`

## [0.3.0] - 2014-04-30

### Added
Expand Down Expand Up @@ -117,3 +123,4 @@ and this project adheres to
[0.2.0]: https://github.com/margined-protocol/vaultenator/0.1.1...0.2.0
[0.2.1]: https://github.com/margined-protocol/vaultenator/0.2.0...0.2.1
[0.3.0]: https://github.com/margined-protocol/vaultenator/0.2.1...0.3.0
[0.3.1]: https://github.com/margined-protocol/vaultenator/0.3.0...0.3.1
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ readme = "README.md"
repository = "https://github.com/margined-protocol/vaultenator"
resolver = "2"
rust-version = "1.77.2"
version = "0.3.0"
version = "0.3.1"

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
3 changes: 3 additions & 0 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ pub enum ContractError {
#[error("Cannot perform action as contract is not open")]
NotOpen {},

#[error("Not found")]
NotFound { msg: String },

#[error("Owner not set")]
NoOwner {},

Expand Down

0 comments on commit e7653d7

Please sign in to comment.