Skip to content

Commit

Permalink
errors.Errorf over fmt.Errorf
Browse files Browse the repository at this point in the history
  • Loading branch information
puellanivis committed Mar 17, 2021
1 parent 32f98f3 commit 91163e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sftp.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func getSupportedExtensionByName(extensionName string) (sshExtensionPair, error)
return supportedExtension, nil
}
}
return sshExtensionPair{}, fmt.Errorf("unsupported extension: %s", extensionName)
return sshExtensionPair{}, errors.Errorf("unsupported extension: %s", extensionName)
}

// SetSFTPExtensions allows to customize the supported server extensions.
Expand Down

0 comments on commit 91163e4

Please sign in to comment.