lkuchars commented on code in PR #10291:
URL: https://github.com/apache/nifi/pull/10291#discussion_r2373543562
##########
nifi-extension-bundles/nifi-protobuf-bundle/nifi-protobuf-services/src/main/java/org/apache/nifi/services/protobuf/ProtobufSchemaCompiler.java:
##########
@@ -129,7 +129,8 @@ private Schema compileSchemaDefinition(final
SchemaDefinition schemaDefinition)
final Schema compiledSchema = createAndLoadSchema(tempDir);
logger.debug("Successfully compiled schema for identifier:
{}", schemaDefinition.getIdentifier());
return compiledSchema;
-
+ } catch (final IllegalStateException e) {
+ throw new SchemaCompilationException(e); // Illegal state
exception is thrown by the wire library for schema issues
Review Comment:
fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]