Revert "Replace generic console.error handlers with window.cloudron.onError"
This reverts commit 7db5a48e35.
This commit is contained in:
@@ -70,21 +70,21 @@ async function onSubmit() {
|
||||
if (error) {
|
||||
busy.value = false;
|
||||
formError.value = error.body ? error.body.message : 'Internal error';
|
||||
if (error) return window.cloudron.onError(error);
|
||||
return console.error(error);
|
||||
}
|
||||
|
||||
[error] = await mailboxesModel.setAliases(domain.value, name.value, aliases.value);
|
||||
if (error) {
|
||||
busy.value = false;
|
||||
formError.value = error.body ? error.body.message : 'Internal error';
|
||||
if (error) return window.cloudron.onError(error);
|
||||
return console.error(error);
|
||||
}
|
||||
} else {
|
||||
const [error] = await mailboxesModel.add(domain.value, name.value, data);
|
||||
if (error) {
|
||||
busy.value = false;
|
||||
formError.value = error.body ? error.body.message : 'Internal error';
|
||||
if (error) return window.cloudron.onError(error);
|
||||
return console.error(error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user