summaryrefslogtreecommitdiffstats
path: root/crates/core/tedge_api/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/core/tedge_api/src/error.rs')
-rw-r--r--crates/core/tedge_api/src/error.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/core/tedge_api/src/error.rs b/crates/core/tedge_api/src/error.rs
index 7f6c8f8e..9f1ff0cd 100644
--- a/crates/core/tedge_api/src/error.rs
+++ b/crates/core/tedge_api/src/error.rs
@@ -2,13 +2,14 @@ use miette::Diagnostic;
use thiserror::Error;
/// Errors as orginating from [`Plugin`](crate::Plugin) and [`PluginBuilder`](crate::PluginBuilder)
-pub type PluginError = miette::Report;
+pub type PluginError = Box<dyn Diagnostic + Send + Sync + 'static>;
#[derive(Error, Debug, Diagnostic)]
/// An error occured while interfacing with the [`PluginDirectory`](crate::plugin::PluginDirectory)
pub enum DirectoryError {
/// The given plugin name does not exist in the configuration
#[error("Plugin named '{}' not found", .0)]
+ #[diagnostic(help("Please double check the name of your plugin is correct"))]
PluginNameNotFound(String),
/// The given plugin does not support all requested message types