Skip to content

Commit

Permalink
quit on bad password
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Nov 18, 2019
1 parent bcb2b5d commit 181dee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/croc/croc.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ func (c *Client) Send(options TransferOptions) (err error) {
log.Debugf("error from errchan: %s", err.Error())
}
if !c.Options.DisableLocal {
if strings.Contains(err.Error(), "refusing files") || strings.Contains(err.Error(), "EOF") {
if strings.Contains(err.Error(), "refusing files") || strings.Contains(err.Error(), "EOF") || strings.Contains(err.Error(), "bad password") {
errchan <- err
}
err = <-errchan
Expand Down

0 comments on commit 181dee9

Please sign in to comment.