Skip to content

Commit abd33a8

Browse files
committed
Fix error message for cover without book
1 parent 8e141c2 commit abd33a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ preprocess do
7878

7979
@items.find_all('/cover/*').each do |cover|
8080
isbn = cover.identifier.without_exts.delete_prefix('/cover/')
81-
raise "cover for unavailable book #{isbn}" if @items.find_all('/book/*').none? { |item| item[:isbn] == isbn }
81+
raise "no book for cover #{isbn}" if @items.find_all('/book/*').none? { |item| item[:isbn] == isbn }
8282
end
8383

8484
@config[:feed_book_isbn] = feed_books.map { |book| book[:isbn] }

0 commit comments

Comments
 (0)