fix(core): throw unexpected errors in .start()
This commit is contained in:
parent
04368ec2a0
commit
b01a99265b
1 changed files with 2 additions and 0 deletions
|
@ -140,6 +140,8 @@ export async function start(
|
||||||
if (tl.RpcError.is(e)) {
|
if (tl.RpcError.is(e)) {
|
||||||
if (e.text === 'SESSION_PASSWORD_NEEDED') has2fa = true
|
if (e.text === 'SESSION_PASSWORD_NEEDED') has2fa = true
|
||||||
else if (e.text !== 'AUTH_KEY_UNREGISTERED') throw e
|
else if (e.text !== 'AUTH_KEY_UNREGISTERED') throw e
|
||||||
|
} else {
|
||||||
|
throw e
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue