feat(errors): Introduce error module with custom error type
Introduces an error type using the failure crate. This type has foreign error links established to various errors that can occur within Converse.
This commit is contained in:
parent
c8cee945c5
commit
fdc1abe7cc
4 changed files with 83 additions and 2 deletions
|
|
@ -10,6 +10,9 @@ extern crate tera;
|
|||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
#[macro_use]
|
||||
extern crate failure;
|
||||
|
||||
extern crate chrono;
|
||||
extern crate actix;
|
||||
extern crate actix_web;
|
||||
|
|
@ -18,10 +21,11 @@ extern crate r2d2;
|
|||
extern crate futures;
|
||||
extern crate serde;
|
||||
|
||||
pub mod schema;
|
||||
pub mod models;
|
||||
pub mod db;
|
||||
pub mod errors;
|
||||
pub mod handlers;
|
||||
pub mod models;
|
||||
pub mod schema;
|
||||
|
||||
use actix::prelude::*;
|
||||
use actix_web::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue