mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Fail addon validation when joex cannot be reached
This commit is contained in:
@ -95,7 +95,13 @@ final class AddonValidate[F[_]: Async](
|
|||||||
)
|
)
|
||||||
else rightUnitT
|
else rightUnitT
|
||||||
|
|
||||||
joexSupport <- EitherT.liftF(joexOps.getAddonSupport)
|
joexSupport <- EitherT(joexOps.getAddonSupport.attempt).leftMap { ex =>
|
||||||
|
logger.asUnsafe.warn(ex)(s"Joex validation failed!")
|
||||||
|
AddonUnsupported(
|
||||||
|
s"Joex validation failed due to an error: ${ex.getMessage}",
|
||||||
|
Nil
|
||||||
|
)
|
||||||
|
}
|
||||||
addonRunners <- EitherT.liftF(meta.enabledTypes(addonData))
|
addonRunners <- EitherT.liftF(meta.enabledTypes(addonData))
|
||||||
_ <- EitherT.liftF(
|
_ <- EitherT.liftF(
|
||||||
logger.info(
|
logger.info(
|
||||||
|
Reference in New Issue
Block a user