# Raises an error if negative refresh interval is passed
karma.bin-should-fail --alertmanager.interval=-4s
! stdout .
cmp stderr stderr.txt

-- stderr.txt --
level=error msg="Execution failed" error="invalid alertmanager.interval value '-4s'"
