Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KeXiangWang committed Nov 16, 2024
1 parent 070dd81 commit ce6b5f3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/frontend/src/webhook/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,12 @@ pub(super) mod handlers {

let _rsp = handle(session, insert_stmt, Arc::from(""), vec![])
.await
.map_err(|e| anyhow!("failed to insert: {:?}", e))?;
.map_err(|e| {
err(
anyhow!(e).context("Failed to insert into target table"),
StatusCode::INTERNAL_SERVER_ERROR,
)
})?;

Ok(())
}
Expand Down

0 comments on commit ce6b5f3

Please sign in to comment.