Gave control to documents service.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
use chrono::prelude::*;
|
||||
use crate::ErrorType;
|
||||
use chrono::prelude::*;
|
||||
use std::fmt;
|
||||
use uuid::Uuid;
|
||||
|
||||
@ -219,7 +219,7 @@ mod fields {
|
||||
let field: Field = err.into();
|
||||
match field {
|
||||
Field::ErrorType(data) => match data {
|
||||
ErrorType::DocumentNotFound => {},
|
||||
ErrorType::DocumentNotFound => {}
|
||||
//_ => unreachable!("got {:?}: should have been Document not found", data),
|
||||
},
|
||||
_ => unreachable!("should have been an error type"),
|
||||
@ -238,7 +238,7 @@ mod fields {
|
||||
let field: Field = err.into();
|
||||
let result = field.to_error_type().unwrap();
|
||||
match result {
|
||||
ErrorType::DocumentNotFound => {},
|
||||
ErrorType::DocumentNotFound => {}
|
||||
//_ => unreachable!("got {:?}: should have been document not found", result),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user