mac: show local gateway path when overridden
This commit is contained in:
@@ -110,12 +110,15 @@ enum GatewayEnvironment {
|
|||||||
|
|
||||||
let gatewayLabel = gatewayBin != nil ? "global" : "local"
|
let gatewayLabel = gatewayBin != nil ? "global" : "local"
|
||||||
let gatewayVersionText = installed?.description ?? "unknown"
|
let gatewayVersionText = installed?.description ?? "unknown"
|
||||||
|
let localPathHint = gatewayBin == nil && projectEntrypoint != nil
|
||||||
|
? " (local: \(projectEntrypoint))"
|
||||||
|
: ""
|
||||||
return GatewayEnvironmentStatus(
|
return GatewayEnvironmentStatus(
|
||||||
kind: .ok,
|
kind: .ok,
|
||||||
nodeVersion: runtime.version.description,
|
nodeVersion: runtime.version.description,
|
||||||
gatewayVersion: gatewayVersionText,
|
gatewayVersion: gatewayVersionText,
|
||||||
requiredGateway: expected?.description,
|
requiredGateway: expected?.description,
|
||||||
message: "Node \(runtime.version.description); gateway \(gatewayVersionText) (\(gatewayLabel))")
|
message: "Node \(runtime.version.description); gateway \(gatewayVersionText) (\(gatewayLabel))\(localPathHint)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user