Replace generic console.error handlers with window.cloudron.onError

This commit is contained in:
Johannes Zellner
2025-12-08 19:45:11 +01:00
parent fe73e76fe9
commit 7db5a48e35
90 changed files with 297 additions and 298 deletions
+2 -2
View File
@@ -108,7 +108,7 @@ async function onRefresh() {
page.value = 1;
const [error, result] = await eventlogsModel.search(actions.join(','), search.value, page.value, perPage.value);
if (error) return console.error(error);
if (error) return window.cloudron.onError(error);
eventlogs.value = result.map(e => {
return {
@@ -125,7 +125,7 @@ async function onRefresh() {
async function fetchMore() {
page.value++;
const [error, result] = await eventlogsModel.search(actions.join(','), search.value, page.value, perPage.value);
if (error) return console.error(error);
if (error) return window.cloudron.onError(error);
eventlogs.value = eventlogs.value.concat(result.map(e => {
return {