Remove unused enum variant.

This commit is contained in:
jcamiel 2023-09-11 11:32:25 +02:00
parent 915f539a4e
commit 336ab101c8
No known key found for this signature in database
GPG Key ID: 07FF11CFD55356CC
2 changed files with 0 additions and 7 deletions

View File

@ -112,9 +112,6 @@ pub enum RunnerError {
TemplateVariableNotDefined {
name: String,
},
VariableNotDefined {
name: String,
},
InvalidJson {
value: String,
},

View File

@ -33,7 +33,6 @@ impl Error for runner::Error {
RunnerError::InvalidUrl(..) => "Invalid URL".to_string(),
RunnerError::InvalidUrlPrefix(..) => "Invalid URL".to_string(),
RunnerError::TemplateVariableNotDefined { .. } => "Undefined variable".to_string(),
RunnerError::VariableNotDefined { .. } => "Undefined variable".to_string(),
RunnerError::HttpConnection { .. } => "HTTP connection".to_string(),
RunnerError::CouldNotResolveProxyName => "HTTP connection".to_string(),
RunnerError::CouldNotResolveHost(_) => "HTTP connection".to_string(),
@ -137,9 +136,6 @@ impl Error for runner::Error {
};
format!("actual: {actual}\nexpected: {expected}{additional}")
}
RunnerError::VariableNotDefined { name } => {
format!("you must set the variable {name}")
}
RunnerError::UnrenderableVariable { name, value } => {
format!("variable <{name}> with value {value} can not be rendered")
}