Revert "Replace generic console.error handlers with window.cloudron.onError"
This reverts commit 7db5a48e35.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user