handle cwd detection errors on linux
This commit is contained in:
1 parent
59ce7eeee6
commit
f9b7f97863
1 file changed
+1
-1
@@ -281,7 +281,7 @@ export class Session extends BaseSession {
|
||||
}
|
||||
if (process.platform === 'linux') {
|
||||
try {
|
||||
return fs.readlink(`/proc/${this.truePID}/cwd`)
|
||||
return await fs.readlink(`/proc/${this.truePID}/cwd`)
|
||||
} catch (exc) {
|
||||
console.error(exc)
|
||||
return null
|
||||
|
||||
Reference in new issue
Block a user