Skip to content
Permalink
Browse files

feat(ssh): Wrap error struct with hierr

  • Loading branch information...
henry40408 committed Dec 12, 2017
1 parent 0c530f7 commit 365f3e51f0be9760b073552f4a24ff55d4d68ada
Showing with 2 additions and 2 deletions.
  1. +2 −2 internal/ssh/ssh.go
@@ -41,12 +41,12 @@ func PerformSSHCommand(fs afero.Fs, source *models.Source, params *models.Params

script, err := placeholder.ReplacePlaceholders(fs, baseDir, params)
if err != nil {
return err
return hierr.Errorf(err, "unable to replace placeholders")
}

remoteScriptFileName, err := putScriptInLocalFile(config, script)
if err != nil {
return err
return hierr.Errorf(err, "unable to put script in file on local machine")
}

command := fmt.Sprintf("%s %s", interpreter, remoteScriptFileName)

0 comments on commit 365f3e5

Please sign in to comment.
You can’t perform that action at this time.