Skip to content

Commit

Permalink
schema_registry/proto: Don' use moved from value in error message
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Pope <ben@vectorized.io>
  • Loading branch information
BenPope committed Jan 31, 2022
1 parent 90d60f7 commit a3df94f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v/pandaproxy/schema_registry/protobuf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ ss::future<const pb::FileDescriptor*> build_file_with_refs(
ss::future<const pb::FileDescriptor*> import_schema(
pb::DescriptorPool& dp, sharded_store& store, canonical_schema schema) {
try {
co_return co_await build_file_with_refs(dp, store, std::move(schema));
co_return co_await build_file_with_refs(dp, store, schema);
} catch (const exception& e) {
vlog(plog.warn, "Failed to decode schema: {}", e.what());
throw as_exception(invalid_schema(schema));
Expand Down

0 comments on commit a3df94f

Please sign in to comment.