sync: add error message when missing heading.jpg

This commit is contained in:
nemunaire 2019-11-23 12:00:21 +01:00
parent 26eab7ed67
commit fbae34ee4f

View File

@ -97,6 +97,8 @@ func BuildTheme(i Importer, tdir string) (th *fic.Theme, errs []string) {
th.Image = path.Join(tdir, "heading.jpg")
} else if i.exists(path.Join(tdir, "heading.png")) {
th.Image = path.Join(tdir, "heading.png")
} else {
errs = append(errs, fmt.Sprintf("%q: heading.jpg: No such file", tdir))
}
return