Skip to content

Commit 6dba141

Browse files
committed
fix: emit progress(0) in case AEAP is tried
1 parent 83bc497 commit 6dba141

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/configure.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ impl Context {
129129
param.addr = addr_normalize(&param.addr);
130130
let old_addr = self.get_config(Config::ConfiguredAddr).await?;
131131
if self.is_configured().await? && !addr_cmp(&old_addr.unwrap_or_default(), &param.addr) {
132-
bail!("Changing your email address is not supported right now. Check back in a few months!");
132+
let error_msg = "Changing your email address is not supported right now. Check back in a few months!";
133+
progress!(self, 0, Some(error_msg.to_string()));
134+
bail!(error_msg);
133135
}
134136
let cancel_channel = self.alloc_ongoing().await?;
135137

0 commit comments

Comments
 (0)