This commit is contained in:
Brandon Thomas committed 2026-03-30 21:27:22 -04:00
1 parent 7110144515
commit d5e6f7cb2c
1 file changed
+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
}