diff --git a/cli.js b/cli.js index 7935b44..d37e360 100755 --- a/cli.js +++ b/cli.js @@ -3971,7 +3971,8 @@ function isCliEntrypoint(argvPath = process.argv[1]) { } try { return pathToFileURL(fs.realpathSync(argvPath)).href === import.meta.url; - } catch { + } catch (error) { + process.stderr.write(`isCliEntrypoint: realpathSync failed for ${argvPath}: ${error.message}\n`); return pathToFileURL(path.resolve(argvPath)).href === import.meta.url; } }