Revert "Replace generic console.error handlers with window.cloudron.onError"

This reverts commit 7db5a48e35.
This commit is contained in:
Johannes Zellner
2025-12-10 18:04:07 +01:00
parent 4dd1a960c1
commit 1cd069df5e
90 changed files with 298 additions and 297 deletions
+3 -3
View File
@@ -50,7 +50,7 @@ async function refreshStatus() {
async function refreshUsage() {
for (const domain of domains.value) {
let [error, result] = await mailModel.config(domain.domain);
if (error) return window.cloudron.onError(error);
if (error) return console.error(error);
domain.inboundEnabled = result.enabled;
domain.outboundEnabled = result.relay?.provider !== 'noop';
@@ -68,7 +68,7 @@ async function refreshUsage() {
if (error && error.status === 424) {
await sleep(1000);
continue;
} else if (error) return window.cloudron.onError(error);
} else if (error) return console.error(error);
domain.usage = 0;
// we used to use quotaValue here but it's quite different wrt diskSize. so choose diskSize consistently
@@ -84,7 +84,7 @@ async function refreshUsage() {
onMounted(async () => {
const [error, result] = await domainsModel.list();
if (error) return window.cloudron.onError(error);
if (error) return console.error(error);
result.forEach(d => {
d.loadingStatus = true;