Skip to content

Commit

Permalink
[refactor]: Include the actual error message in InternalError (#3689)
Browse files Browse the repository at this point in the history
[fix]: Include the actual error message in InternalError

Signed-off-by: Nikita Strygin <DCNick3@users.noreply.github.com>
Co-authored-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
  • Loading branch information
DCNick3 and appetrosyan committed Jul 10, 2023
1 parent 47198dc commit 99c9511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl From<Error> for ValidationFail {

match call_error {
ExecutionLimitsExceeded(_) => Self::TooComplex,
HostExecution(_) | Other(_) => Self::InternalError(call_error.to_string()),
HostExecution(error) | Other(error) => Self::InternalError(error.to_string()),
}
}
_ => Self::InternalError(err.to_string()),
Expand Down

0 comments on commit 99c9511

Please sign in to comment.