Skip to content

Commit

Permalink
check failure directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimmy Mu committed Apr 23, 2021
1 parent c7487cf commit 5265a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrapper/hermes_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void HermesBucketPut(BucketClass *bkt, char *name, unsigned char *put_data,
hermes::api::Bucket *bucket = reinterpret_cast<hermes::api::Bucket *>(bkt);
hermes::api::Status status = bucket->Put(name, put_data, size, ctx);

if (!status.Acceptable())
if (status.Failed())
LOG(ERROR) << "Hermes Wrapper: HermesBucketPut failed\n";
}

Expand Down

0 comments on commit 5265a6d

Please sign in to comment.