Initial stab at templates

This commit is contained in:
Daniel García
2019-01-13 01:39:29 +01:00
parent 60f6a350be
commit 19b6bb0fd6
11 changed files with 265 additions and 70 deletions

View File

@@ -37,6 +37,7 @@ use jsonwebtoken::errors::Error as JwtError;
use serde_json::{Error as SerError, Value};
use std::io::Error as IOError;
use u2f::u2ferror::U2fError as U2fErr;
use handlebars::RenderError as HbError;
// Error struct
// Contains a String error message, meant for the user and an enum variant, with an error of different types.
@@ -53,6 +54,7 @@ make_error! {
SerdeError(SerError): _has_source, _api_error,
JWTError(JwtError): _has_source, _api_error,
IoErrror(IOError): _has_source, _api_error,
TemplErrror(HbError): _has_source, _api_error,
//WsError(ws::Error): _has_source, _api_error,
}