Replace generic console.error handlers with window.cloudron.onError
This commit is contained in:
@@ -28,7 +28,7 @@ async function onSubmit() {
|
||||
if (error) {
|
||||
formError.value.generic = error.body ? error.body.message : 'Internal error';
|
||||
busy.value = false;
|
||||
return console.error(error);
|
||||
if (error) return window.cloudron.onError(error);
|
||||
}
|
||||
|
||||
let contents;
|
||||
@@ -56,7 +56,7 @@ async function onSubmit() {
|
||||
if (error) {
|
||||
formError.value.generic = error.body ? error.body.message : 'Internal error';
|
||||
busy.value = false;
|
||||
return console.error(error);
|
||||
if (error) return window.cloudron.onError(error);
|
||||
}
|
||||
|
||||
emit('success');
|
||||
@@ -79,7 +79,7 @@ defineExpose({
|
||||
enableForUpdates.value = !!t.enableForUpdates;
|
||||
|
||||
const [error, result] = await appsModel.list();
|
||||
if (error) return console.error(error);
|
||||
if (error) return window.cloudron.onError(error);
|
||||
|
||||
contentOptions.value = [{
|
||||
id: 'box',
|
||||
|
||||
Reference in New Issue
Block a user