Skip to content

Commit

Permalink
remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
rahxephon89 committed Nov 28, 2024
1 parent 5944663 commit 13bf0fa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions aptos-move/aptos-vm/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ pub fn convert_prologue_error(
(category, reason) => {
let err_msg = format!("[aptos_vm] Unexpected prologue Move abort: {:?}::{:?} (Category: {:?} Reason: {:?})",
location, code, category, reason);
println!("1convert_prologue_error: err_msg:{}", err_msg);
speculative_error!(log_context, err_msg.clone());
return Err(VMStatus::error(
StatusCode::UNEXPECTED_ERROR_FROM_KNOWN_MOVE_FUNCTION,
Expand Down Expand Up @@ -139,7 +138,6 @@ pub fn convert_prologue_error(
let err_msg = format!("[aptos_vm] Unexpected prologue Move abort: {:?}::{:?} (Category: {:?} Reason: {:?})",
location, code, category, reason);
speculative_error!(log_context, err_msg.clone());
println!("2convert_prologue_error: err_msg:{}", err_msg);
return Err(VMStatus::Error {
status_code: StatusCode::UNEXPECTED_ERROR_FROM_KNOWN_MOVE_FUNCTION,
sub_status: None,
Expand All @@ -161,7 +159,6 @@ pub fn convert_prologue_error(
log_context,
format!("[aptos_vm] Unexpected prologue error: {:?}", status),
);
println!("3convert_prologue_error: e:{:?}", status);
VMStatus::Error {
status_code: StatusCode::UNEXPECTED_ERROR_FROM_KNOWN_MOVE_FUNCTION,
sub_status: status.sub_status(),
Expand All @@ -187,7 +184,6 @@ pub fn convert_epilogue_error(
let (category, reason) = error_split(code);
let err_msg = format!("[aptos_vm] Unexpected success epilogue Move abort: {:?}::{:?} (Category: {:?} Reason: {:?})",
location, code, category, reason);
println!("1convert_epilogue_error: err_msg:{}", err_msg);
speculative_error!(log_context, err_msg.clone());
VMStatus::error(
StatusCode::UNEXPECTED_ERROR_FROM_KNOWN_MOVE_FUNCTION,
Expand All @@ -200,7 +196,6 @@ pub fn convert_epilogue_error(
(category, reason) => {
let err_msg = format!("[aptos_vm] Unexpected success epilogue Move abort: {:?}::{:?} (Category: {:?} Reason: {:?})",
location, code, category, reason);
println!("2convert_epilogue_error: err_msg:{}", err_msg);
speculative_error!(log_context, err_msg.clone());
VMStatus::error(
StatusCode::UNEXPECTED_ERROR_FROM_KNOWN_MOVE_FUNCTION,
Expand All @@ -217,7 +212,6 @@ pub fn convert_epilogue_error(
} => e,
status => {
let err_msg = format!("[aptos_vm] Unexpected success epilogue error: {:?}", status);
println!("3convert_epilogue_error: err_msg:{}", err_msg);
speculative_error!(log_context, err_msg.clone());
VMStatus::Error {
status_code: StatusCode::UNEXPECTED_ERROR_FROM_KNOWN_MOVE_FUNCTION,
Expand Down Expand Up @@ -254,7 +248,6 @@ pub fn expect_only_successful_execution(
function_name, status
);
speculative_warn!(log_context, err_msg.clone());
println!("expect_only_successful_execution: err_msg:{}", err_msg);
VMStatus::Error {
status_code: StatusCode::UNEXPECTED_ERROR_FROM_KNOWN_MOVE_FUNCTION,
sub_status: status.sub_status(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,6 @@ pub(crate) mod versioned_data {
};
// if version == 0 || version > u32::min(max_version, VERSION_MAX) {
if version == 0 {
panic!("version:{}, max version:{}", version, max_version);
Err(PartialVMError::new(StatusCode::UNKNOWN_VERSION)
.with_message(format!("bytecode version {} unsupported", version)))
} else {
Expand Down

0 comments on commit 13bf0fa

Please sign in to comment.