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

readLine should return the path on error #4965

Open
domenkozar opened this issue Jun 30, 2021 · 1 comment
Open

readLine should return the path on error #4965

domenkozar opened this issue Jun 30, 2021 · 1 comment
Labels
error-messages Confusing messages and better diagnostics

Comments

@domenkozar
Copy link
Member

string readLine(int fd) should return the path on error, it's possible to get the path but there's no cross-platform way.

linux: refer to /proc/self for obtaining path of given file descriptor
darwin: fcntl(F_GETPATH)

@domenkozar domenkozar added improvement error-messages Confusing messages and better diagnostics labels Jun 30, 2021
@stale
Copy link

stale bot commented Jan 3, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Jan 3, 2022
@stale stale bot removed the stale label Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error-messages Confusing messages and better diagnostics
Projects
None yet
Development

No branches or pull requests

2 participants