Skip to content

Improve error messages by showing more context#1433

Open
fingolfin wants to merge 1 commit intoJuliaLang:mainfrom
fingolfin:codex/improve-error-path-context
Open

Improve error messages by showing more context#1433
fingolfin wants to merge 1 commit intoJuliaLang:mainfrom
fingolfin:codex/improve-error-path-context

Conversation

@fingolfin
Copy link
Member

E.g. when failing to modify a file, include the path to the file.

Resolves #1430.

Co-authored-by: Codex codex@openai.com

E.g. when failing to modify a file, include the path to the file

Co-authored-by: Codex <codex@openai.com>
@fingolfin
Copy link
Member Author

Tests pass. I manually went over the PR to verify the AI did not produce arbitrary garbage, it all seems sensible. Though of course I can not guarantee it is all perfect (I couldn't if I had written it myself either...). Though if this causes regressions, I offer to take care of them (in the worst case by reverting select messages to their prior state).

I also verified that it improves the error message in cases I care about. So I hope this can be merged?

@fingolfin
Copy link
Member Author

(In other words: would be great if someone could approve this, then I can merge it... ;-) )

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.

Error messages involving file access issues should print a full path to the file (absolute or relative, either is fine)

1 participant