catch error if user denied request