Fix to show executable error instead of Docker
This commit is contained in:
parent
b6214f2563
commit
f22608ca28
|
@ -394,13 +394,13 @@ class HybridExecutable extends Executable
|
||||||
)
|
)
|
||||||
.catch((error) =>
|
.catch((error) =>
|
||||||
return Promise.reject(error) if not @docker?
|
return Promise.reject(error) if not @docker?
|
||||||
return @
|
return Promise.resolve(error)
|
||||||
)
|
)
|
||||||
.then(() =>
|
.then((errorOrThis) =>
|
||||||
shouldTryWithDocker = not @isInstalled and @docker?
|
shouldTryWithDocker = not @isInstalled and @docker?
|
||||||
@verbose("Executable shouldTryWithDocker", shouldTryWithDocker, @isInstalled, @docker?)
|
@verbose("Executable shouldTryWithDocker", shouldTryWithDocker, @isInstalled, @docker?)
|
||||||
if shouldTryWithDocker
|
if shouldTryWithDocker
|
||||||
return @initDocker()
|
return @initDocker().catch(() => Promise.reject(errorOrThis))
|
||||||
return @
|
return @
|
||||||
)
|
)
|
||||||
.catch((error) =>
|
.catch((error) =>
|
||||||
|
@ -460,5 +460,4 @@ class HybridExecutable extends Executable
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
module.exports = HybridExecutable
|
module.exports = HybridExecutable
|
||||||
|
|
Loading…
Reference in New Issue