File tree 1 file changed +6
-4
lines changed
src/renderer/html_handlebars 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,8 @@ impl HtmlHandlebars {
230
230
. chain ( html. additional_js . iter ( ) ) ;
231
231
232
232
for custom_file in custom_files {
233
- self . write_custom_file ( custom_file, book) ?;
233
+ self . write_custom_file ( & custom_file, book)
234
+ . chain_err ( || format ! ( "Copying {} failed" , custom_file. display( ) ) ) ?;
234
235
}
235
236
236
237
Ok ( ( ) )
@@ -312,10 +313,11 @@ impl Renderer for HtmlHandlebars {
312
313
& rendered. into_bytes ( ) ) ?;
313
314
info ! ( "[*] Creating print.html ✓" ) ;
314
315
315
- // Copy static files (js, css, images, ...)
316
316
debug ! ( "[*] Copy static files" ) ;
317
- self . copy_static_files ( book, & theme, & html_config) ?;
318
- self . copy_additional_css_and_js ( book) ?;
317
+ self . copy_static_files ( book, & theme, & html_config)
318
+ . chain_err ( || "Unable to copy across static files" ) ?;
319
+ self . copy_additional_css_and_js ( book)
320
+ . chain_err ( || "Unable to copy across additional CSS and JS" ) ?;
319
321
320
322
// Copy all remaining files
321
323
let src = book. source_dir ( ) ;
You can’t perform that action at this time.
0 commit comments