Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b533b4d

Browse files
unswaps error messages
1 parent 4e2b85c commit b533b4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

front-matter-ci.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def check_duplicatePermalinks(meta_to_check):
4646
failures.append(meta["redirect_from"])
4747
else:
4848
allPermalinks.append(meta["redirect_from"])
49-
return "are there posts with order > 5 and 'page_type: example_index'?", failures
49+
return "are there duplicate permalinks/redirect_froms?", failures
5050

5151

5252
def check_indexOverflow(meta_to_check):
@@ -58,7 +58,7 @@ def check_indexOverflow(meta_to_check):
5858
if "order" in meta and meta["order"] > 5:
5959
if "page_type" in meta and meta["page_type"] == "example_index":
6060
failures.append(meta["permalink"])
61-
return "are there duplicate permalinks/redirect_froms?", failures
61+
return "are there posts with order > 5 and 'page_type: example_index'?", failures
6262

6363

6464
def check_postsWithNoThumbnail(meta_to_check):

0 commit comments

Comments
 (0)