mirror of
https://github.com/ddworken/hishtory.git
synced 2024-12-23 23:39:02 +01:00
Bubble up error when we fail to encrypt history entries
This commit is contained in:
parent
190b3b45ae
commit
4bb0ebfb2e
@ -626,7 +626,7 @@ func EncryptAndMarshal(config *hctx.ClientConfig, entries []*data.HistoryEntry)
|
||||
for _, entry := range entries {
|
||||
encEntry, err := data.EncryptHistoryEntry(config.UserSecret, *entry)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to encrypt history entry")
|
||||
return nil, fmt.Errorf("failed to encrypt history entry: %w", err)
|
||||
}
|
||||
encEntry.DeviceId = config.DeviceId
|
||||
encEntries = append(encEntries, encEntry)
|
||||
|
Loading…
Reference in New Issue
Block a user