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

More meaningful error message, if fields keyword is missing in a fields section #1935

Closed
trych opened this issue Jul 21, 2019 · 1 comment

Comments

@trych
Copy link

commented Jul 21, 2019

If I have a blueprint file containing a section that is missing the fields keyword like this:

sections:
  content:
    type: fields
      title:
        type: text
      text:
        type: textarea

then I get the following error in a panel page that contains the erronous type of page:

The section "projects" could not be loaded: Illegal offset type in isset or empty

This would require a more meaningful error message for a user to understand what actually causes the error.

Edit: problem discussed in the forums

@bastianallgeier

This comment has been minimized.

Copy link
Contributor

commented Sep 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.