mirror of
https://github.com/anthonyoteri/dredge.git
synced 2026-06-05 23:36:53 -04:00
Add unit tests for existing commands
This commit is contained in:
@@ -29,6 +29,9 @@ pub enum DredgeError {
|
||||
/// An error building the registry URL
|
||||
#[error("Error determining registry URL from {0}")]
|
||||
RegistryUrlError(String),
|
||||
|
||||
#[error(transparent)]
|
||||
IOError(#[from] std::io::Error),
|
||||
}
|
||||
|
||||
/// An error related to the communication with the registry API.
|
||||
@@ -56,6 +59,9 @@ pub enum ApiError {
|
||||
|
||||
#[error("Resource not found")]
|
||||
NotFound,
|
||||
|
||||
#[error(transparent)]
|
||||
IOError(#[from] std::io::Error),
|
||||
}
|
||||
|
||||
impl From<reqwest::header::ToStrError> for ApiError {
|
||||
|
||||
Reference in New Issue
Block a user