diff --git a/src/main.rs b/src/main.rs index fae5c44..c012c51 100644 --- a/src/main.rs +++ b/src/main.rs @@ -187,7 +187,8 @@ fn output_file_to_markdown( trim: bool, out: &mut W, ) -> Result<(), Box> { - let content = fs::read_to_string(path)?; + let content = fs::read_to_string(path) + .map_err(|e| format!("Failed to read {}: {}", path.display(), e))?; let content_str = if trim { content.trim() } else {