test(session): report legacy opener failures on stderr

The two-process suite asserts only the error name; the message and cause now
reach the inherited stderr so a CI failure identifies the SQLite error.
This commit is contained in:
liukx0205 committed 2026-11-16 14:41:50 +08:00
1 parent 50ea9a6d53
commit 2be76f92a2
1 file changed
+2
@@ -43,6 +43,8 @@ try {
await commands.next()
} catch (error) {
process.stdout.write(`${error.name}\n`)
// The suite asserts on the name; the message and cause go to the inherited stderr for diagnosis.
process.stderr.write(`legacy opener ${access} ${id}: ${String(error)}${error.cause === undefined ? '' : ` (cause: ${String(error.cause)})`}\n`)
}
} finally {
await ctx.fiber.dispose()