advertise supported algo on failure

This commit is contained in:
Stephen McQuay 2017-01-16 19:02:41 -08:00
parent ad43f4e092
commit 20485be72e
No known key found for this signature in database
GPG Key ID: 1ABF428F71BAFC3D

View File

@ -37,7 +37,7 @@ func hsh(files []string) chan result {
default:
r := make(chan result)
go func() {
r <- result{err: fmt.Errorf("unsupported algorithm: %v", *algo)}
r <- result{err: fmt.Errorf("unsupported algorithm: %v (supported: md5, sha1, sha256, sha512)", *algo)}
close(r)
}()
return r