Skip to content

Commit

Permalink
refactor: Change write test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lubux committed Nov 23, 2023
1 parent 3db5173 commit 1ab7fbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openpgp/v2/write_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ FindKey:
}
_, ok := decPackets.(*packet.Compressed)
if !ok {
return errors.InvalidArgumentError("No compressed packets found")
return errors.StructuralError("No compressed packets found")
}
return nil
}
2 changes: 1 addition & 1 deletion openpgp/write_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ FindKey:
decPackets, err := packet.Read(decrypted)
_, ok := decPackets.(*packet.Compressed)
if !ok {
return errors.InvalidArgumentError("No compressed packets found")
return errors.StructuralError("No compressed packets found")
}
return nil
}

0 comments on commit 1ab7fbc

Please sign in to comment.