Update error.rs

This commit is contained in:
sunli 2020-04-22 19:09:59 +08:00
parent 8210ab240a
commit 44bd920ad2

View File

@ -138,15 +138,6 @@ pub enum QueryError {
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}\".")]
FieldNotFound {
/// Field name
@ -227,15 +218,6 @@ pub enum QueryError {
name: String,
},
#[error("Object \"{object}\" does not implement interface \"{interface}\"")]
NotImplementedInterface {
/// Object name
object: String,
/// Interface name
interface: String,
},
#[error("Too complex")]
TooComplex,