diff --git a/ee/tabby-webserver/src/service/auth.rs b/ee/tabby-webserver/src/service/auth.rs index 67e83f58606c..3cb04a5c13e6 100644 --- a/ee/tabby-webserver/src/service/auth.rs +++ b/ee/tabby-webserver/src/service/auth.rs @@ -502,7 +502,7 @@ async fn check_invitation( }; if invitation.email != email { - return err; + return Err(anyhow!("Invitation code is not for this email address").into()); } Ok(Some(invitation))