Raise an error if no scheme is set