Github user pvillard31 commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1467#discussion_r99649060
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/InvokeHTTP.java
 ---
    @@ -753,6 +756,9 @@ public void onTrigger(ProcessContext context, 
ProcessSession session) throws Pro
                 if (requestFlowFile != null) {
                     logger.error("Routing to {} due to exception: {}", new 
Object[]{REL_FAILURE.getName(), e}, e);
                     requestFlowFile = session.penalize(requestFlowFile);
    +                String attributeKey = EXCEPTION_CLASS;
    +                String attributeValue = e.getClass().getName();
    +                requestFlowFile = session.putAttribute(requestFlowFile, 
attributeKey, attributeValue);
    --- End diff --
    
    Purely stylistic comment: could you simplify to
    ````java
    requestFlowFile = session.putAttribute(requestFlowFile, EXCEPTION_CLASS, 
e.getClass().getName());
    ````


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to