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

Use a more explicit error when a field is inexistant in a view [CUSTOM] #373

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nicoe
Copy link
Collaborator

@nicoe nicoe commented Dec 18, 2024

Fix PCLAS-1343

@nicoe nicoe requested a review from JCavallo December 18, 2024 23:38
@nicoe nicoe changed the title Use a more explicit error when a field is inexistant in a view Use a more explicit error when a field is inexistant in a view [CUSTOM] Dec 18, 2024

if (['field', 'label'].includes(node.tagName) &&
jQuery.isEmptyObject(field)) {
Sao.Logger.error(
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no actual error here (meaning, no pop-up, just the log).

I am not sure of what I'd rather have, but the Gtk client raises an error.

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.

2 participants