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

Better error message for triggers when accessing special scope keywords in triggers #8199

Open
Gobot1234 opened this issue Jan 10, 2025 · 0 comments
Assignees

Comments

@Gobot1234
Copy link
Contributor

# schema
        trigger prohibit_queue after insert for each do (
            select assert(__new__.location.queue_in_use, message := "Queue has been manually disabled")
        );
error: could not resolve partial path 
    ┌─ /Users/James/Developer/ignis/apps/anvil2/dbschema/sign_in.esdl:170:27170select assert(.queue_in_use, message := "Queue has been manually disabled")
    │                           ^^^^^^^^^^^^^ error

gel error: cannot proceed until schema files are fixed

Currently the error looks like this. Could it be updated to give a hint to use new/old?

@Gobot1234 Gobot1234 changed the title Better error message for triggers when accessing variables Better error message for triggers when accessing special scope keywords in triggers Jan 10, 2025
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

No branches or pull requests

2 participants