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
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ func hsh(files []string) chan result {
default: default:
r := make(chan result) r := make(chan result)
go func() { 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) close(r)
}() }()
return r return r