From 91163e446307be402988ac460b3915757405f0ad Mon Sep 17 00:00:00 2001 From: Cassondra Foesch Date: Wed, 17 Mar 2021 20:17:55 +0000 Subject: [PATCH] errors.Errorf over fmt.Errorf --- sftp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sftp.go b/sftp.go index 13320832..7c7250f4 100644 --- a/sftp.go +++ b/sftp.go @@ -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.