Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crates/capsec-core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ pub enum CapSecError {
/// The capability has expired (TTL elapsed).
#[error("capability has expired")]
Expired,

/// The capability requires multiple approvals, but not all have been granted.
#[error("capability requires dual-key approval, but approvals are insufficient")]
InsufficientApprovals,
}
1 change: 1 addition & 0 deletions crates/capsec-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub mod cap;
pub mod error;
pub mod has;
pub mod permission;
pub mod prescript;
pub mod root;
pub mod runtime;

Expand Down
Loading
Loading