Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] misleading error messages on wrong layout path #1650

Closed
AlbinoGeek opened this issue Sep 29, 2020 · 3 comments
Closed

[BUG] misleading error messages on wrong layout path #1650

AlbinoGeek opened this issue Sep 29, 2020 · 3 comments

Comments

@AlbinoGeek
Copy link

Summary

Regarding either the HTML or Blocks template/view engines, if your Layout file could not be read, (such as a wrong path configured) the error delivered to the browser reads:

layout 'index.html' does not exist

Which is misleading, when it shows this regardless of what you have set (in my case, it was base for example.)

I would have expected to see: layout 'base' does not exist instead.

Versions, etc.

Thing Version
Golang 1.14.9 linux/amd64
Iris master f224ded
Kernel 5.8.10-200.fc32.x86_64
OS Fedora 32 Workstation
@kataras
Copy link
Owner

kataras commented Sep 29, 2020

@AlbinoGeek this only happens to the HTML Engine through a copy-paste of the error issue, which just solved locally, at the rest the correct name is shown up, are you sure it happens to Blocks? Can you copy-paste the code?

@AlbinoGeek
Copy link
Author

The issue with Blocks was due to #1649 -- you are correct.

kataras added a commit that referenced this issue Sep 29, 2020
@kataras kataras added this to the v12.2.0 milestone Sep 29, 2020
@kataras
Copy link
Owner

kataras commented Sep 29, 2020

Fixed 👍

@kataras kataras closed this as completed Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants