mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-23 00:02:49 +00:00
fix lints
This commit is contained in:
1 parent
b380532d30
commit
8dac0366b6
2 files changed
+6
-6
No files matched your search
@@ -177,7 +177,11 @@ export class Connection {
|
||||
} catch (error) {
|
||||
this.logger.debug(`Failed to connect to LiveKit room: ${error}`);
|
||||
this._state$.next(
|
||||
error instanceof ElementCallError ? error : new UnknownCallError(error),
|
||||
error instanceof ElementCallError
|
||||
? error
|
||||
: error instanceof Error
|
||||
? new UnknownCallError(error)
|
||||
: new UnknownCallError(new Error(`${error}`)),
|
||||
);
|
||||
// Its okay to ignore the throw. The error is part of the state.
|
||||
throw error;
|
||||
|
||||
Reference in new issue
Block a user