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

fix: templates source error #878

Merged
merged 1 commit into from Jan 16, 2023
Merged

fix: templates source error #878

merged 1 commit into from Jan 16, 2023

Conversation

cossssmin
Copy link
Member

This makes the build error message less confusing when you didn't have a build.templates.source defined in the config.

So if you ran maizzle build imaginary but had no config.imaginary.js, you would have seen this cryptic message:

$ maizzle build imaginary
✖ Cannot read properties of undefined (reading 'source')

Now you'll get a better error message:

$ maizzle build imaginary
✖ No template sources defined in `build.templates`, check your config.imaginary.js file

@cossssmin cossssmin merged commit 85ca0d9 into next Jan 16, 2023
@cossssmin cossssmin deleted the fix/templates-source-error branch January 16, 2023 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant