cli: suppress printing error messages when -q is specified.