# Raises an error if alertmanager URI is invalid
! exec karma --alertmanager.uri httpz://username:secret@127.0.0.1
! stdout .
cmp stderr stderr.txt

-- stderr.txt --
level=INFO msg="Version: dev"
level=ERROR msg="Execution failed" error="failed to create Alertmanager 'default' with URI 'httpz://username:xxx@127.0.0.1': unsupported URI scheme 'httpz' in 'httpz://username:xxx@127.0.0.1'"
