Skip to content

Commit

Permalink
Make installation Effectful
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Nov 29, 2023
1 parent 2c0fe3f commit e875401
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/installer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import serpentine.*, hierarchies.unix
import rudiments.*
import guillotine.*
import gossamer.*
import exoskeleton.*
import turbulence.*
import eucalyptus.*
import perforate.*
Expand Down Expand Up @@ -84,8 +85,8 @@ object Installer:
def install
(force: Boolean = false, target: Maybe[Path] = Unset)
(using service: DaemonService[?], log: Log[Text], environment: Environment, home: HomeDirectory)
(using Raises[InstallError])
: Result =
(using Effectful)
: Result raises InstallError =
mitigate:
case PathError(path) => InstallError(InstallError.Reason.Environment)
case ExecError(command, _, _) => InstallError(InstallError.Reason.Io)
Expand Down

0 comments on commit e875401

Please sign in to comment.