Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit 0958abc

Browse files
committed
fix up error status'
1 parent 759b5e9 commit 0958abc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/cipherstash/client/rpc.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,11 @@ def put_stream(collection, records)
282282

283283
res.numInserted
284284
rescue ::GRPC::NotFound
285-
raise Error::RecordDeleteFailure, "Collection '#{collection.name}' not found"
285+
raise Error::RecordPutFailure, "Collection '#{collection.name}' not found"
286286
rescue ::GRPC::InvalidArgument => ex
287287
raise Error::RecordPutFailure, "Error while putting records into collection '#{collection.name}': #{ex.message} (#{ex.class})"
288288
rescue ::GRPC::BadStatus => ex
289-
raise Error::RecordGetFailure, "Error while putting records into collection '#{collection.name}': #{ex.message} (#{ex.class})"
289+
raise Error::RecordPutFailure, "Error while putting records into collection '#{collection.name}': #{ex.message} (#{ex.class})"
290290
end
291291

292292
def delete(collection, id)

0 commit comments

Comments
 (0)