diff --git a/linux/run.go b/linux/run.go index 2bfa888..ec90af2 100644 --- a/linux/run.go +++ b/linux/run.go @@ -54,7 +54,7 @@ func (cmd *LinuxCommand) Run() error { if exitErr.ExitCode() == 127 { return ErrCommandNotFound } else { - return fmt.Errorf("%w: %w", ErrRunningCmd, err) + return fmt.Errorf("%s: %w", ErrRunningCmd.Error(), err) } } } @@ -66,7 +66,7 @@ func (cmd *LinuxCommand) Run() error { if exitErr.ExitCode() == 127 { return ErrCommandNotFound } else { - return fmt.Errorf("%w: %w", ErrRunningCmd, err) + return fmt.Errorf("%s: %w", ErrRunningCmd.Error(), err) } } } diff --git a/main.go b/main.go index e5b9d97..31c1b00 100644 --- a/main.go +++ b/main.go @@ -1,4 +1,4 @@ -package main +package shell import ( "bytes"