Browse Source

Add asset list in file not name index.md error message

index-subcmd
Vincent Prouillet 7 years ago
parent
commit
74be6d9c15
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/page.rs

+ 1
- 1
src/page.rs View File

@@ -180,7 +180,7 @@ impl Page {
page.assets = find_related_assets(path.parent().unwrap()); page.assets = find_related_assets(path.parent().unwrap());


if !page.assets.is_empty() && page.file_name != "index" { if !page.assets.is_empty() && page.file_name != "index" {
bail!("Page `{}` has assets but is not named index.md", path.display());
bail!("Page `{}` has assets ({:?}) but is not named index.md", path.display(), page.assets);
} }


Ok(page) Ok(page)


Loading…
Cancel
Save