sugar_cli/deploy/errors.rs
1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum DeployError {
5 #[error("Missing metadata link for cache item {0}")]
6 MissingMetadataLink(String),
7 #[error("Missing name for cache item {0}")]
8 MissingName(String),
9 #[error("{0}")]
10 AddConfigLineFailed(String),
11 #[error(
12 "Your current wallet balance of {0} MLN is not enough. {1} MLN is needed to deploy the candy machine."
13 )]
14 BalanceTooLow(String, String),
15}