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

OnlyResponseCanBeReturned.message() — astro Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/astro/src/core/errors/errors-data.ts lines 120–123

	message: (route: string | undefined, returnedValue: string) =>
		`Route \`${
			route ? route : ''
		}\` returned a \`${returnedValue}\`. Only a [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) can be returned from Astro files.`,

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free