No such schema message formating fix (#316)

Co-authored-by: Ilya Kuramshin <ikuramshin@provectus.com>
This commit is contained in:
iliax 2021-03-25 14:15:34 +03:00 committed by GitHub
parent 9775f0dae7
commit 21a090f102
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@ public class SchemaRegistryService {
.uri(cluster.getSchemaRegistry() + URL_SUBJECT_VERSIONS, schemaName)
.retrieve()
.onStatus(NOT_FOUND::equals,
throwIfNotFoundStatus(formatted(NO_SUCH_SCHEMA))
throwIfNotFoundStatus(formatted(NO_SUCH_SCHEMA, schemaName))
).bodyToFlux(Integer.class)
).orElse(Flux.error(ClusterNotFoundException::new));
}