Home / Function/ DuplicateContentEntrySlugError.message() — astro Function Reference

DuplicateContentEntrySlugError.message() — astro Function Reference

Architecture documentation for the DuplicateContentEntrySlugError.message() function in errors-data.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  13e54b86_6387_1794_3c04_59e984effd2e["DuplicateContentEntrySlugError.message()"]
  0e25cce4_bb3d_83b8_da61_b3d3cc567b74["errors-data.ts"]
  13e54b86_6387_1794_3c04_59e984effd2e -->|defined in| 0e25cce4_bb3d_83b8_da61_b3d3cc567b74
  style 13e54b86_6387_1794_3c04_59e984effd2e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/errors/errors-data.ts lines 1906–1914

	message(collection: string, slug: string, preExisting: string, alsoFound: string) {
		return (
			`**${collection}** contains multiple entries with the same slug: \`${slug}\`. ` +
			`Slugs must be unique.\n\n` +
			`Entries: \n` +
			`- ${preExisting}\n` +
			`- ${alsoFound}`
		);
	},

Domain

Subdomains

Frequently Asked Questions

What does DuplicateContentEntrySlugError.message() do?
DuplicateContentEntrySlugError.message() is a function in the astro codebase, defined in packages/astro/src/core/errors/errors-data.ts.
Where is DuplicateContentEntrySlugError.message() defined?
DuplicateContentEntrySlugError.message() is defined in packages/astro/src/core/errors/errors-data.ts at line 1906.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free