aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 2cfb962..23789b6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -33,7 +33,7 @@ fn write_to_file<P: AsRef<Path>>(base: &Option<PathBuf>, path: P, content: &str)
33 fs::create_dir_all(path.parent().unwrap())?; 33 fs::create_dir_all(path.parent().unwrap())?;
34 fs::write(path, content)?; 34 fs::write(path, content)?;
35 } else { 35 } else {
36 /* Print error on stderr */ 36 eprintln!("Absolute paths not supported: {}", path.as_ref().to_string_lossy())
37 } 37 }
38 Ok(()) 38 Ok(())
39} 39}
@@ -148,8 +148,8 @@ fn main() -> Result<()> {
148 .or_insert(Cow::from(code)); 148 .or_insert(Cow::from(code));
149 } 149 }
150 } else { 150 } else {
151 // println!("The following code has no ID:"); 151 eprintln!("Ignoring codeblock without ID:");
152 // code.lines().for_each(|l| println!(" {}", l)); 152 eprintln!("{}", indent(Cow::from(code),4));
153 } 153 }
154 } 154 }
155 ); 155 );