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