improved error handling
All checks were successful
Version Check / check-version (pull_request) Successful in 3s
All checks were successful
Version Check / check-version (pull_request) Successful in 3s
This commit is contained in:
@@ -96,10 +96,7 @@ fn main() -> anyhow::Result<()> {
|
||||
}
|
||||
} else if vars.is_empty() {
|
||||
// Fallback if no template and active is empty
|
||||
vars = handler.parse(&input_path).map_err(|e| {
|
||||
error!("Failed to parse input file: {}", e);
|
||||
MouldError::Format(format!("Failed to parse {}: {}", input_path.display(), e))
|
||||
})?;
|
||||
vars = handler.parse(&input_path)?;
|
||||
}
|
||||
|
||||
if vars.is_empty() {
|
||||
|
||||
Reference in New Issue
Block a user