Unverified Commit eb0cf667 authored by Anna Henningsen's avatar Anna Henningsen
Browse files

src: fix tracing if cwd or file path is inaccessible

Otherwise this would have crashed the process.
In particular, checking the return value of an libuv call against `-1`
was invalid to begin with, as libuv uses it to propagate the
error code.

PR-URL: https://github.com/nodejs/node/pull/21867


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarEugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: default avatarAli Ijaz Sheikh <ofrobots@google.com>
parent 620e46c8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment