@@ -490,19 +490,20 @@ export const makeWithHosts = Effect.fn("DeviceService.makeWithHosts")(function*
490490 host ,
491491 ) ,
492492 ) ,
493- Effect . mapError (
494- ( error ) =>
495- new DeviceHostUnavailableError ( {
496- hostId : host . id ,
497- hostLabel : host . label ,
498- reason :
499- error . _tag === "NodeRuntimeUnavailableError"
500- ? nodeRuntimeUnavailableMessage ( "Local device support" )
501- : error . step === "probe"
502- ? sshProbeFailureMessage ( error )
503- : `Device support failed during ${ error . step } .` ,
504- cause : error ,
505- } ) ,
493+ Effect . mapError ( ( error ) =>
494+ error . _tag === "DeviceHostUnavailableError"
495+ ? error
496+ : new DeviceHostUnavailableError ( {
497+ hostId : host . id ,
498+ hostLabel : host . label ,
499+ reason :
500+ error . _tag === "NodeRuntimeUnavailableError"
501+ ? nodeRuntimeUnavailableMessage ( "Local device support" )
502+ : error . step === "probe"
503+ ? sshProbeFailureMessage ( error )
504+ : `Device support failed during ${ error . step } .` ,
505+ cause : error ,
506+ } ) ,
506507 ) ,
507508 stopIfRevoked ( host , false ) ,
508509 ) ;
@@ -561,23 +562,24 @@ export const makeWithHosts = Effect.fn("DeviceService.makeWithHosts")(function*
561562 host ,
562563 ) ,
563564 ) ,
564- Effect . mapError (
565- ( error ) =>
566- new DeviceHostUnavailableError ( {
567- hostId : host . id ,
568- hostLabel : host . label ,
569- reason :
570- error . _tag === "NodeRuntimeUnavailableError"
571- ? nodeRuntimeUnavailableMessage ( "Local device support" )
572- : error . _tag === "DeviceHostTimeoutError"
573- ? `Agent tools did not start within ${ error . timeoutMs } ms.`
574- : error . _tag === "AgentDeviceStartError"
575- ? error . message
576- : error . step === "probe"
577- ? sshProbeFailureMessage ( error )
578- : `Device support failed during ${ error . step } .` ,
579- cause : error ,
580- } ) ,
565+ Effect . mapError ( ( error ) =>
566+ error . _tag === "DeviceHostUnavailableError"
567+ ? error
568+ : new DeviceHostUnavailableError ( {
569+ hostId : host . id ,
570+ hostLabel : host . label ,
571+ reason :
572+ error . _tag === "NodeRuntimeUnavailableError"
573+ ? nodeRuntimeUnavailableMessage ( "Local device support" )
574+ : error . _tag === "DeviceHostTimeoutError"
575+ ? `Agent tools did not start within ${ error . timeoutMs } ms.`
576+ : error . _tag === "AgentDeviceStartError"
577+ ? error . message
578+ : error . step === "probe"
579+ ? sshProbeFailureMessage ( error )
580+ : `Device support failed during ${ error . step } .` ,
581+ cause : error ,
582+ } ) ,
581583 ) ,
582584 stopIfRevoked ( host , true ) ,
583585 ) ;
0 commit comments