[IMP] allow more fine-grained control over what counts as error

This allows us to cover situations where a message indicates a problem, but not always. For an example, see the discussion in https://github.com/OCA/server-tools/pull/65