mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
fix +10358: Object Error has no method 'indexOf'
This commit is contained in:
parent
5a65f80f47
commit
b3c84e12a8
5
node_modules/vfs-local/localfs.js
generated
vendored
5
node_modules/vfs-local/localfs.js
generated
vendored
@ -1903,6 +1903,8 @@ module.exports = function setup(fsOptions) {
|
||||
|
||||
if (!attach) {
|
||||
meta.pty.on("data", function wait(data){
|
||||
if (data)
|
||||
meta.pty.removeListener("data", wait);
|
||||
// Look for error states in plain text from tmux
|
||||
if (data.indexOf("can't create socket") > -1) {
|
||||
var err = new Error(data);
|
||||
@ -1910,9 +1912,6 @@ module.exports = function setup(fsOptions) {
|
||||
err.code = "EPERM";
|
||||
meta.pty.emit("data", err);
|
||||
}
|
||||
else if (data) {
|
||||
meta.pty.removeListener("data", wait);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user