Skip to content

Fix error reporting #27

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

Open
andresgutgon opened this issue May 16, 2025 · 0 comments
Open

Fix error reporting #27

andresgutgon opened this issue May 16, 2025 · 0 comments

Comments

@andresgutgon
Copy link
Contributor

What?

Now, the errors that return promptly are imprecise. Let's with an example

Image

The user made a mistake in this example of Promptl usage inside Latitude. Instead of low, they put lol. But the error is highlighting all the yaml block, and the error is super vague

We have all the right information inside Zod errors. We just need to go deeper

Image

Related code is here:
https://github.com/latitude-dev/promptl/blob/main/src/compiler/scan.ts#L311-L334

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

1 participant