Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey committed Oct 29, 2019
1 parent a65fe82 commit e2409ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"Test": [
{
"type": "category",
"label": "category",
"label": "Category Label",
"items": "doc1"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('loadSidebars', () => {
'sidebars-category-wrong-items.json',
);
expect(() => loadSidebars(sidebarPath)).toThrowErrorMatchingInlineSnapshot(
`"Error loading category category. Category items must be array."`,
`"Error loading \\"Category Label\\" category. Category items must be array."`,
);
});

Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-content-docs/src/sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function normalizeCategory(

if (!Array.isArray(category.items)) {
throw new Error(
`Error loading ${category.label} category. Category items must be array.`,
`Error loading "${category.label}" category. Category items must be array.`,
);
}

Expand Down

0 comments on commit e2409ba

Please sign in to comment.