Skip to content

Commit

Permalink
Using correct errorDetail in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Jan 23, 2024
1 parent c0af3e8 commit feb5f4e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -827,9 +827,11 @@ public AS4MessageProcessorResult processAS4UserMessage (@Nonnull final IAS4Incom
m_aTransportProfile.getID () +
") - not handling incoming AS4 document";
LOGGER.error (sLogPrefix + sMsg);
// the errorDetail MUST be set according to Peppol AS4 profile 2.2
aProcessingErrorMessages.add (EEbmsError.EBMS_OTHER.errorBuilder (aDisplayLocale)
.refToMessageInError (aState.getMessageID ())
.errorDetail (sMsg)
.description (sMsg, aDisplayLocale)
.errorDetail ("PEPPOL:NOT_SERVICED")
.build ());
return AS4MessageProcessorResult.createFailure ();
}
Expand Down

0 comments on commit feb5f4e

Please sign in to comment.