Better error message for book.json type errors