1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-09-25 22:29:45 +00:00

Better message

This commit is contained in:
2020-05-23 10:14:21 +02:00
parent 4b12de6e50
commit 0bd9a8f5f8
3 changed files with 27 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
use core::fmt;
use serde::export::Formatter;
use std::error;
use std::error::Error;
/// Simple rust error
///
@@ -9,6 +10,7 @@ use std::error;
/// Simple result type
pub type ResultExecError<E> = Result<E, ExecError>;
pub type ResultBoxError<E> = Result<E, Box<dyn Error>>;
#[derive(Debug, Clone)]
pub struct ExecError(pub String);