Replace generic console.error handlers with window.cloudron.onError
This commit is contained in:
@@ -52,7 +52,7 @@ async function onSubmit() {
|
||||
if (error) {
|
||||
busy.value = false;
|
||||
formError.value.generic = error.body ? error.body.message : 'Internal error';
|
||||
return console.error(error);
|
||||
if (error) return window.cloudron.onError(error);
|
||||
}
|
||||
|
||||
emit('success');
|
||||
|
||||
Reference in New Issue
Block a user