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) =>
|
||||
return Promise.reject(error) if not @docker?
|
||||
return @
|
||||
return Promise.resolve(error)
|
||||
)
|
||||
.then(() =>
|
||||
.then((errorOrThis) =>
|
||||
shouldTryWithDocker = not @isInstalled and @docker?
|
||||
@verbose("Executable shouldTryWithDocker", shouldTryWithDocker, @isInstalled, @docker?)
|
||||
if shouldTryWithDocker
|
||||
return @initDocker()
|
||||
return @initDocker().catch(() => Promise.reject(errorOrThis))
|
||||
return @
|
||||
)
|
||||
.catch((error) =>
|
||||
|
@ -460,5 +460,4 @@ class HybridExecutable extends Executable
|
|||
)
|
||||
)
|
||||
|
||||
|
||||
module.exports = HybridExecutable
|
||||
|
|
Loading…
Reference in New Issue