fix: ssh process error not resulting in pipeline error

This commit is contained in:
Damian Kaczmarek 2017-11-09 12:09:52 -06:00
parent 7220c94832
commit 8405b241a4
No known key found for this signature in database
GPG Key ID: 9C001AB68BDAF665
2 changed files with 4 additions and 2 deletions

View File

@ -178,7 +178,10 @@ REPOSITORY:
Github: https://github.com/appleboy/drone-ssh
`
app.Run(os.Args)
if err := app.Run(os.Args); err != nil {
fmt.Println("drone-ssh error: ", err)
os.Exit(1);
}
}
func run(c *cli.Context) error {

View File

@ -160,7 +160,6 @@ func (p Plugin) Exec() error {
case <-finished:
case err := <-errChannel:
if err != nil {
fmt.Println("drone-ssh error: ", err)
return err
}
}