Modify all the assertion calls to redact the message and only keep the error code when operating in 'redact mode'