From 31cbe6905133ddef8147700ca2e0ce2f3d8e85f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Wed, 12 Jan 2022 00:53:25 +1300 Subject: [PATCH] Configure miette docsurl globally per error type --- lib/src/error.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/error.rs b/lib/src/error.rs index 359bf8a..88b7d7c 100644 --- a/lib/src/error.rs +++ b/lib/src/error.rs @@ -19,6 +19,7 @@ use crate::{ /// Errors which are not recoverable and stop watchexec execution. #[derive(Debug, Diagnostic, Error)] #[non_exhaustive] +#[diagnostic(url(docsrs))] pub enum CriticalError { /// Pseudo-error used to signal a graceful exit. #[error("this should never be printed (exit)")] @@ -65,6 +66,7 @@ pub enum CriticalError { /// be reported to the user and/or acted upon programatically, but will not outright stop watchexec. #[derive(Debug, Diagnostic, Error)] #[non_exhaustive] +#[diagnostic(url(docsrs))] pub enum RuntimeError { /// Pseudo-error used to signal a graceful exit. #[error("this should never be printed (exit)")] @@ -246,6 +248,7 @@ pub enum RuntimeError { /// Errors occurring from reconfigs. #[derive(Debug, Diagnostic, Error)] #[non_exhaustive] +#[diagnostic(url(docsrs))] pub enum ReconfigError { /// Error received when the action processor cannot be updated. #[error("reconfig: action watch: {0}")]