Skip to content

Commit 13e4cf6

Browse files
committed
fix: merge conflicts - use vError instaed of throwError
1 parent c8801c5 commit 13e4cf6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/core/src/lib/lit-core.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -680,12 +680,7 @@ export class LitCore {
680680
} nodes. Please check your network connection and try again. Note that you can control this timeout with the connectTimeout config option which takes milliseconds.`;
681681

682682
try {
683-
// TODO: Kludge, replace with standard error construction
684-
throwError({
685-
message: msg,
686-
errorKind: LIT_ERROR.INIT_ERROR.kind,
687-
errorCode: LIT_ERROR.INIT_ERROR.name,
688-
});
683+
throw new InitError({}, msg);
689684
} catch (e) {
690685
logErrorWithRequestId(requestId, e);
691686
reject(e);

0 commit comments

Comments
 (0)