fix(client): cyclic dependency server <-> ws

pull/2371/head
Elian Doran 2025-06-20 18:32:20 +07:00
parent 3190aa6fe6
commit ae1a4fbbf6
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

@ -1,6 +1,5 @@
import utils, { isShare } from "./utils.js";
import ValidationError from "./validation_error.js";
import { throwError } from "./ws.js";
type Headers = Record<string, string | null | undefined>;
@ -277,6 +276,7 @@ async function reportError(method: string, url: string, statusCode: number, resp
} else {
const title = `${statusCode} ${method} ${url}`;
toastService.showErrorTitleAndMessage(title, messageStr);
const { throwError } = await import("./ws.js");
throwError(`${title} - ${message}`);
}
}