It is somewhat a betrayal. Secret negotiation is a way for US and Australia of telling to France (after 30 years of collaboration in Pacific) "We don't want to work on strategic stuff with France anymore".
The thing that make the french government angry is not much the cancellation of the contract, but how it was done it completely in secret behind his back.
You just don't do that to ally on the geopolitical stage.