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

Feature: warn on no theme #1734

Merged
merged 4 commits into from
Aug 24, 2023
Merged

Feature: warn on no theme #1734

merged 4 commits into from
Aug 24, 2023

Conversation

jankapunkt
Copy link
Member

Raises a warning, if no theme is installed. The warning itself is also covered in the README.

@jankapunkt jankapunkt self-assigned this Aug 22, 2023
@jankapunkt jankapunkt linked an issue Aug 22, 2023 that may be closed by this pull request
@@ -309,6 +309,7 @@ AutoForm.getTemplateName = function autoFormGetTemplateName (
}

// Found nothing. Return undefined
console.warn('AutoForm: no theme found, please consult the README.')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future we could use the logging package to do something like Log.debug, but since we need this warning before this comes anywhere near production this is adequate.

@StorytellerCZ
Copy link
Member

@jankapunkt failing test, probably a bad selector judging from the error...

@jankapunkt
Copy link
Member Author

Weird, since I only added a warn output. 🤔

@jankapunkt jankapunkt merged commit cf49854 into devel Aug 24, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please add error/warning messages if no theme is installed
2 participants