improving save logic

This commit is contained in:
2025-10-28 21:26:46 +02:00
parent 2b4fbbecf5
commit 40221f9db5

View File

@@ -164,8 +164,8 @@ public class TransactionWorkflow extends WorkflowDefinition {
execution.setVariable("body", Utils.toJson(transaction));
return NextAction.moveToState(SALES_INVOICE, "Polling complete");
} catch (Exception e) {
log.info(e.getMessage());
return NextAction.moveToState(FAILED, e.getMessage());
log.info(e.getCause().getMessage());
return NextAction.moveToState(FAILED, e.getCause().getMessage());
}
}