Update error.rs
This commit is contained in:
parent
8210ab240a
commit
44bd920ad2
18
src/error.rs
18
src/error.rs
|
@ -138,15 +138,6 @@ pub enum QueryError {
|
||||||
actual: Value,
|
actual: Value,
|
||||||
},
|
},
|
||||||
|
|
||||||
#[error("Expected type \"{expect}\", found {actual}.")]
|
|
||||||
ExpectedJsonType {
|
|
||||||
/// Expect input JSON type
|
|
||||||
expect: String,
|
|
||||||
|
|
||||||
/// Actual input JSON type
|
|
||||||
actual: serde_json::Value,
|
|
||||||
},
|
|
||||||
|
|
||||||
#[error("Cannot query field \"{field_name}\" on type \"{object}\".")]
|
#[error("Cannot query field \"{field_name}\" on type \"{object}\".")]
|
||||||
FieldNotFound {
|
FieldNotFound {
|
||||||
/// Field name
|
/// Field name
|
||||||
|
@ -227,15 +218,6 @@ pub enum QueryError {
|
||||||
name: String,
|
name: String,
|
||||||
},
|
},
|
||||||
|
|
||||||
#[error("Object \"{object}\" does not implement interface \"{interface}\"")]
|
|
||||||
NotImplementedInterface {
|
|
||||||
/// Object name
|
|
||||||
object: String,
|
|
||||||
|
|
||||||
/// Interface name
|
|
||||||
interface: String,
|
|
||||||
},
|
|
||||||
|
|
||||||
#[error("Too complex")]
|
#[error("Too complex")]
|
||||||
TooComplex,
|
TooComplex,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user