mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-02-23 15:50:00 +01:00
Reconsider Error variants
BadServerResponse didn't seem to be adequately different from NegativeServerResponse so it's been removed. NegativeServerResponse is now a struct variant with field names 'error' and 'error_description' to self document what it contains. InvalidClient and InvalidScope were only ever created based on string parsing of the returned error message from the server. This seemed overly specific to a particular implementation and didn't provide much value to callers. Printing a NegativeServerResponse would provide users the same information. The caching layer never returns errors anymore so remove that variant.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//! Module containing types related to delegates.
|
||||
|
||||
use crate::error::{RefreshError};
|
||||
use crate::error::RefreshError;
|
||||
|
||||
use std::error::Error as StdError;
|
||||
use std::fmt;
|
||||
|
||||
Reference in New Issue
Block a user