feat: Update error handling to use getErrorMessage utility and improve logging across multiple services

This commit is contained in:
2025-11-25 08:25:54 +00:00
parent c59d56e70a
commit e94906b3bf
13 changed files with 97 additions and 75 deletions

View File

@@ -836,7 +836,7 @@ export class OneboxDatabase {
if (!this.db) throw new Error('Database not initialized');
const fields: string[] = [];
const values: unknown[] = [];
const values: BindValue[] = [];
if (updates.image !== undefined) {
fields.push('image = ?');
@@ -1202,7 +1202,7 @@ export class OneboxDatabase {
if (!this.db) throw new Error('Database not initialized');
const fields: string[] = [];
const values: unknown[] = [];
const values: BindValue[] = [];
if (updates.certPath) {
fields.push('cert_path = ?');
@@ -1303,7 +1303,7 @@ export class OneboxDatabase {
if (!this.db) throw new Error('Database not initialized');
const fields: string[] = [];
const values: unknown[] = [];
const values: BindValue[] = [];
if (updates.domain !== undefined) {
fields.push('domain = ?');
@@ -1405,7 +1405,7 @@ export class OneboxDatabase {
if (!this.db) throw new Error('Database not initialized');
const fields: string[] = [];
const values: unknown[] = [];
const values: BindValue[] = [];
if (updates.certDomain !== undefined) {
fields.push('cert_domain = ?');
@@ -1524,7 +1524,7 @@ export class OneboxDatabase {
if (!this.db) throw new Error('Database not initialized');
const fields: string[] = [];
const values: unknown[] = [];
const values: BindValue[] = [];
if (updates.subdomain !== undefined) {
fields.push('subdomain = ?');
@@ -1711,7 +1711,7 @@ export class OneboxDatabase {
if (!this.db) throw new Error('Database not initialized');
const fields: string[] = [];
const values: unknown[] = [];
const values: BindValue[] = [];
if (updates.status !== undefined) {
fields.push('status = ?');