diff --git a/soroban-env-host/src/auth.rs b/soroban-env-host/src/auth.rs index 41644a7f0..7de7b84d4 100644 --- a/soroban-env-host/src/auth.rs +++ b/soroban-env-host/src/auth.rs @@ -591,10 +591,12 @@ impl AuthorizationManager { } // No matching tracker found, hence the invocation isn't // authorized. - Err(HostError::from(( + Err(host.err( ScErrorType::Auth, ScErrorCode::InvalidAction, - ))) + "Unauthorized function call for address", + &[address.to_val()], + )) } fn require_auth_internal(