Skip to content

Commit

Permalink
fix method that process error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjuarezgx committed Jul 25, 2023
1 parent 306017d commit 556506d
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ protected void EventRouterErrorMessagesSetup(Exception ex, out GXBaseCollection<
{
errorMessages = new GXBaseCollection<SdtMessages_Message>();
bool foundGeneralException = false;
if (errorMessages != null && ex != null)
if (ex != null)
{
SdtMessages_Message msg = new SdtMessages_Message();
if (eventRouter != null)
{
while (ex.InnerException != null)
if (eventRouter != null && ex.InnerException != null)
{
do
{
if (eventRouter.GetMessageFromException(ex.InnerException, msg))
{
Expand All @@ -156,6 +156,7 @@ protected void EventRouterErrorMessagesSetup(Exception ex, out GXBaseCollection<
}
ex = ex.InnerException;
}
while (ex.InnerException != null);
if (foundGeneralException)
GXUtil.ErrorToMessages("GXEventRouter1002", ex, errorMessages);
}
Expand Down

0 comments on commit 556506d

Please sign in to comment.