File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
cardano-testnet/src/Testnet/Process Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -312,8 +312,11 @@ data ExecutableError
312
312
= CannotDecodePlanJSON FilePath String
313
313
| RetrievePlanJsonFailure IOException
314
314
| ReadFileFailure IOException
315
- | MissingExecutable FilePath String
316
- | CannotFindExecutable String
315
+ | ExecutableMissingInComponent FilePath String
316
+ -- ^ Component with key @component-name@ is found, but it is missing
317
+ -- the @bin-file@ key.
318
+ | ExecutableNotFoundInPlan String
319
+ -- ^ Component with key @component-name@ cannot be found
317
320
deriving Show
318
321
319
322
@@ -334,8 +337,8 @@ binDist pkg = do
334
337
Right plan -> case List. filter matching (plan & installPlan) of
335
338
(component: _) -> case component & binFile of
336
339
Just bin -> return $ addExeSuffix (Text. unpack bin)
337
- Nothing -> left $ MissingExecutable pJsonFp $ " missing bin-file in : " <> show component
338
- [] -> left $ CannotFindExecutable $ " Cannot find exe: " <> pkg
340
+ Nothing -> left $ ExecutableMissingInComponent pJsonFp $ " missing \" bin-file\" key in plan component : " <> show component
341
+ [] -> left $ ExecutableNotFoundInPlan $ " Cannot find \" component-name \" key with value \" exe:" <> pkg <> " \" "
339
342
Left message -> left $ CannotDecodePlanJSON pJsonFp $ " Cannot decode plan: " <> message
340
343
where matching :: Component -> Bool
341
344
matching component = case componentName component of
You can’t perform that action at this time.
0 commit comments