Skip to content

Commit

Permalink
Simplify transit batch error message generation when ciphertext is em…
Browse files Browse the repository at this point in the history
…pty.
  • Loading branch information
Matt Schultz committed Nov 11, 2021
1 parent 1e85d7c commit c5b7092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/logical/transit/path_encrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ func (b *backend) pathEncryptWrite(ctx context.Context, req *logical.Request, d
}

if ciphertext == "" {
batchResponseItems[i].Error = fmt.Errorf("empty ciphertext returned for input item %d", i).Error()
batchResponseItems[i].Error = fmt.Sprintf("empty ciphertext returned for input item %d", i)
continue
}

Expand Down

0 comments on commit c5b7092

Please sign in to comment.