Maybe you can use [this format](https://github.com/andresriancho/w3af/blob/master/core/controllers/dependency_check/platforms/mac.py#L98) for the error message?