Return ClientError from Client::auth_uri

This commit is contained in:
Curtis McEnroe 2015-12-24 14:22:04 -05:00
parent cfa53d8b35
commit d31ccaf473
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ use std::marker::PhantomData;
use hyper::{self, header, mime};
use rustc_serialize::json::Json;
use url::{self, form_urlencoded, Url};
use url::{form_urlencoded, Url};
use error::OAuth2Error;
use provider::Provider;
@ -88,7 +88,7 @@ impl<P: Provider> Client<P> {
/// None
/// );
/// ```
pub fn auth_uri(&self, scope: Option<&str>, state: Option<&str>) -> Result<String, url::ParseError>
pub fn auth_uri(&self, scope: Option<&str>, state: Option<&str>) -> Result<String, ClientError>
{
let mut uri = try!(Url::parse(P::auth_uri()));