improve service error (#1734)

Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
yjh
2023-09-30 12:52:47 +08:00
committed by GitHub
parent 7d4f82968c
commit 8fe947af60
+2 -2
View File
@@ -54,10 +54,10 @@ pub enum Error {
#[error("Tasks executor hasn't been provided.")]
TaskExecutorRequired,
#[error("Prometheus metrics error")]
#[error("Prometheus metrics error: {0}")]
Prometheus(#[from] prometheus_endpoint::PrometheusError),
#[error("Application")]
#[error("Application: {0}")]
Application(#[from] Box<dyn std::error::Error + Send + Sync + 'static>),
#[error("Other: {0}")]