Use unused return values from write_all()

This commit is contained in:
Matthias Beyer 2016-01-05 16:35:14 +01:00
parent e46fb41dd2
commit 1ddbaae9e0

View file

@ -211,7 +211,12 @@ impl<'a> Notes<'a> {
}
};
tempfile.write_all(MarkdownParser::new(&s).to_html_page().as_ref());
tempfile.write_all(MarkdownParser::new(&s).to_html_page().as_ref())
.map_err(|e| {
error!("Could not write HTML to file: {}", temppath);
debug!("Could not write HTML to file: {:?}", e);
})
.ok();
open::that(&temppath[..]).is_ok()
}