Error in web.config transformation doesn't roll back or stop deployment


We are using version of Octopus and we recently noticed that an error in transforming a web.config file did not stop or roll back the deployment.

Is this by design and should we add a deployfailed step or is this a bug?

best regards,.
Erwin Werkman
Aviva Solutions