Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Suggestion: error message indicates layout instead of current view. #3930

Closed
Bartmax opened this issue Jan 14, 2016 · 1 comment
Closed

Suggestion: error message indicates layout instead of current view. #3930

Bartmax opened this issue Jan 14, 2016 · 1 comment
Assignees
Milestone

Comments

@Bartmax
Copy link

Bartmax commented Jan 14, 2016

When having a layout with a RenderSection required, and then you go to a View without that section defined, the error message is:

Section 'sectionName' is not defined in path '/Views/Shared/_Layout.cshtml'.

but I think it should be:

Section 'sectionName' is not defined in path '/Views/Home/Index.cshtml'.
@Eilon Eilon added this to the 6.0.0-rc2 milestone Jan 14, 2016
@Eilon
Copy link
Member

Eilon commented Jan 14, 2016

Indeed that looks backwards!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants