Revert "Replace generic console.error handlers with window.cloudron.onError"
This reverts commit 7db5a48e35.
This commit is contained in:
@@ -167,7 +167,7 @@ async function onSubmit() {
|
||||
if (error) {
|
||||
formError.value.generic = error.body ? error.body.message : 'Internal error';
|
||||
busy.value = false;
|
||||
if (error) return window.cloudron.onError(error);
|
||||
return console.error(error);
|
||||
}
|
||||
|
||||
// stash for encryption password step
|
||||
@@ -203,7 +203,7 @@ async function onSetupEncryption() {
|
||||
formError.value.generic = error.body ? error.body.message : 'Internal error';
|
||||
}
|
||||
busy.value = false;
|
||||
if (error) return window.cloudron.onError(error);
|
||||
return console.error(error);
|
||||
}
|
||||
|
||||
emit('success');
|
||||
@@ -217,7 +217,7 @@ watch(encryptionPassword, () => {
|
||||
|
||||
async function getMemory() {
|
||||
const [error, result] = await systemModel.memory();
|
||||
if (error) return window.cloudron.onError(error);
|
||||
if (error) return console.error(error);
|
||||
|
||||
maxMemoryLimit.value = Math.ceil(result.memory / (1024*1024*1024)) * 1024 * 1024 * 1024;
|
||||
}
|
||||
@@ -272,7 +272,7 @@ defineExpose({
|
||||
await getMemory();
|
||||
|
||||
const [error, result] = await appsModel.list();
|
||||
if (error) return window.cloudron.onError(error);
|
||||
if (error) return console.error(error);
|
||||
|
||||
contentOptions.value = [{
|
||||
id: 'box',
|
||||
|
||||
Reference in New Issue
Block a user