It might make sense to actually call `warning()` or `stop()` directly - the message probably should be different depending on whether it's a warning or error.