Fixed issue causing bootstrap validation to be ignored before creation.

This commit is contained in:
CalDescent 2021-10-09 16:29:40 +01:00
parent a78af8f248
commit eb991c6026

View File

@ -52,7 +52,8 @@ public class BootstrapResource {
try {
bootstrap.checkRepositoryState();
} catch (DataException e) {
LOGGER.info("Not ready to create bootstrap: ", e.getMessage());
LOGGER.info("Not ready to create bootstrap: {}", e.getMessage());
throw ApiExceptionFactory.INSTANCE.createCustomException(request, ApiError.REPOSITORY_ISSUE, e.getMessage());
}
bootstrap.validateBlockchain();
return bootstrap.create();