Skip to content

Commit

Permalink
revert as report
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
  • Loading branch information
BugenZhao committed Nov 3, 2023
1 parent 232c4d6 commit 932036b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/utils/pgwire/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ panic-message = "0.3"
risingwave_common = { workspace = true }
risingwave_sqlparser = { workspace = true }
thiserror = "1"
thiserror-ext = { workspace = true }
tokio = { version = "0.2", package = "madsim-tokio", features = ["rt", "macros"] }
tokio-openssl = "0.6.3"
tracing = "0.1"
Expand Down
3 changes: 1 addition & 2 deletions src/utils/pgwire/src/pg_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,13 +628,12 @@ impl<'a> BeMessage<'a> {
}

BeMessage::ErrorResponse(error) => {
use thiserror_ext::AsReport;
// For all the errors set Severity to Error and error code to
// 'internal error'.

// 'E' signalizes ErrorResponse messages
buf.put_u8(b'E');
let msg = format!("{:#}", error.as_ref().as_report());
let msg = error.to_string();
write_err_or_notice(buf, &ErrorOrNoticeMessage::internal_error(&msg))?;
}

Expand Down

0 comments on commit 932036b

Please sign in to comment.