Skip to content

Commit 3ce5e16

Browse files
Add console output for CI debugging.
1 parent 5c34b25 commit 3ce5e16

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/examples/IDBBatchAtomicVFS.js

+10
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export class IDBBatchAtomicVFS extends WebLocksMixin(FacadeVFS) {
101101
pOutFlags.setInt32(0, flags, true);
102102
return VFS.SQLITE_OK;
103103
} catch (e) {
104+
console.error(e.message);
104105
this.lastError = e;
105106
return VFS.SQLITE_CANTOPEN;
106107
}
@@ -127,6 +128,7 @@ export class IDBBatchAtomicVFS extends WebLocksMixin(FacadeVFS) {
127128
}
128129
return VFS.SQLITE_OK;
129130
} catch (e) {
131+
console.error(e.message);
130132
this.lastError = e;
131133
return VFS.SQLITE_IOERR_DELETE;
132134
}
@@ -147,6 +149,7 @@ export class IDBBatchAtomicVFS extends WebLocksMixin(FacadeVFS) {
147149
pResOut.setInt32(0, meta ? 1 : 0, true);
148150
return VFS.SQLITE_OK;
149151
} catch (e) {
152+
console.error(e.message);
150153
this.lastError = e;
151154
return VFS.SQLITE_IOERR_ACCESS;
152155
}
@@ -174,6 +177,7 @@ export class IDBBatchAtomicVFS extends WebLocksMixin(FacadeVFS) {
174177
await this.#idb.sync(file.synchronous === 'full');
175178
return VFS.SQLITE_OK;
176179
} catch (e) {
180+
console.error(e.message);
177181
this.lastError = e;
178182
return VFS.SQLITE_IOERR_CLOSE;
179183
}
@@ -214,6 +218,7 @@ export class IDBBatchAtomicVFS extends WebLocksMixin(FacadeVFS) {
214218
}
215219
return VFS.SQLITE_OK;
216220
} catch (e) {
221+
console.error(e.message);
217222
this.lastError = e;
218223
return VFS.SQLITE_IOERR_READ;
219224
}
@@ -288,6 +293,7 @@ export class IDBBatchAtomicVFS extends WebLocksMixin(FacadeVFS) {
288293
}
289294
return VFS.SQLITE_OK;
290295
} catch (e) {
296+
console.error(e.message);
291297
this.lastError = e;
292298
return VFS.SQLITE_IOERR_WRITE;
293299
}
@@ -313,6 +319,7 @@ export class IDBBatchAtomicVFS extends WebLocksMixin(FacadeVFS) {
313319
}
314320
return VFS.SQLITE_OK;
315321
} catch (e) {
322+
console.error(e.message);
316323
this.lastError = e;
317324
return VFS.SQLITE_IOERR_TRUNCATE;
318325
}
@@ -342,6 +349,7 @@ export class IDBBatchAtomicVFS extends WebLocksMixin(FacadeVFS) {
342349
}
343350
return VFS.SQLITE_OK;
344351
} catch (e) {
352+
console.error(e.message);
345353
this.lastError = e;
346354
return VFS.SQLITE_IOERR_FSYNC;
347355
}
@@ -358,6 +366,7 @@ export class IDBBatchAtomicVFS extends WebLocksMixin(FacadeVFS) {
358366
pSize64.setBigInt64(0, BigInt(file.metadata.fileSize), true);
359367
return VFS.SQLITE_OK;
360368
} catch (e) {
369+
console.error(e.message);
361370
this.lastError = e;
362371
return VFS.SQLITE_IOERR_FSTAT;
363372
}
@@ -528,6 +537,7 @@ export class IDBBatchAtomicVFS extends WebLocksMixin(FacadeVFS) {
528537
return VFS.SQLITE_OK;
529538
}
530539
} catch (e) {
540+
console.error(e.message);
531541
this.lastError = e;
532542
return VFS.SQLITE_IOERR;
533543
}

0 commit comments

Comments
 (0)