Skip to content

Commit

Permalink
Revert "fix: wrap errors in code blocks to avoid escaping issues"
Browse files Browse the repository at this point in the history
This reverts commit 9bd8a0d.
  • Loading branch information
blombern committed Aug 24, 2023
1 parent 16dd636 commit 9c4b8a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/phoenix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ pub async fn monitor_critical_services() -> Result<()> {
Err(anyhow!(message))
}
Err(err) => {
let message = format!("phoenix process exited with error: ```{}```", err);
let message = format!("phoenix process exited with error: {}", err);
error!("{}", &message);
alert::send_telegram_alert(&message).await?;
Err(err)
Expand Down
2 changes: 1 addition & 1 deletion src/phoenix/demotion_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub async fn run_demotion_monitor(relay_pool: &PgPool, mev_pool: &PgPool) -> Res
.filter(|d| !ELIGIBLE_ERRORS.contains(&d.sim_error.as_str()))
.map(|demotion| {
format!(
"*{name}* `{pubkey}` was demoted during slot [{slot}]({url}/slot/{slot}) with the following error:\n\n```{error}```",
"*{name}* `{pubkey}` was demoted during slot [{slot}]({url}/slot/{slot}) with the following error:\n\n{error}",
name = demotion.builder_id.clone().unwrap_or("unknown builder_id".to_string()),
pubkey = demotion.builder_pubkey,
slot = demotion.slot,
Expand Down

0 comments on commit 9c4b8a6

Please sign in to comment.