Make the output a string

This commit is contained in:
Jeff Mitchell
2017-01-25 12:02:28 -05:00
parent 68e94e2a4c
commit e2035e9d86

View File

@@ -641,7 +641,7 @@ func (b *AESGCMBarrier) Get(key string) (*Entry, error) {
// Decrypt the ciphertext
plain, err := b.decryptKeyring(key, pe.Value)
if err != nil {
return nil, fmt.Errorf("decryption failed for %q: %v", key, err)
return nil, fmt.Errorf("decryption failed for %q: %v", string(key), err)
}
// Wrap in a logical entry