Juju action fail not working in Juju 3.1.5

Hello team,

Using juju 3.1.5 failed actions don’t seem to report correctly. I created the following action to validate this:

def _on_some_action(self, event: ActionEvent) -> None:
        if True:
            event.fail("failed correctly")
            logger.error("failed correctly")
            return None

When I run the action I get the following output only:

Running operation 3 with 1 task
  - task 4 on unit-tls-certificates-operator-0

Waiting for task 4...

However I see the “failed correctly” line in the logs.

Any ideas?

Thank you!