mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 11:01:35 +00:00
cleanup
This commit is contained in:
1 parent
7110144515
commit
d5e6f7cb2c
1 file changed
+10
-8
+10
-8
@@ -13,17 +13,19 @@ pub(super) fn check_common_web_error(
|
||||
) -> bool {
|
||||
match error {
|
||||
CommonWebError::ServerError => {
|
||||
enqueue_alert(
|
||||
pager,
|
||||
format!("CommonWebError::ServerError on {} {}", method, path),
|
||||
format!(
|
||||
"A CommonWebError::ServerError was returned.\n\n\
|
||||
let summary = format!("CommonWebError::ServerError on {} {}", method, path);
|
||||
let description = format!(
|
||||
"A CommonWebError::ServerError was returned.\n\n\
|
||||
Endpoint: {} {}\n\
|
||||
Error: {:?}\n\
|
||||
Time: {}",
|
||||
method, path, error,
|
||||
chrono::Utc::now().format("%Y-%m-%d %H:%M:%S UTC"),
|
||||
),
|
||||
method, path, error,
|
||||
chrono::Utc::now().format("%Y-%m-%d %H:%M:%S UTC"),
|
||||
);
|
||||
enqueue_alert(
|
||||
pager,
|
||||
summary,
|
||||
description,
|
||||
);
|
||||
true
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user