Skip to content

Commit 73dc5b1

Browse files
committed
fix(driver-sqlite-wasm): end the refusal's prescription without a period the connect line adds
Claude-Session: https://claude.ai/code/session_015pbbff7SHh7EEEWiasBdDe Co-authored-by: Claude <noreply@anthropic.com>
1 parent f8ffdfc commit 73dc5b1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/drivers/driver-sqlite-wasm/src/sqlite-wasm-25019-unreadable-file-refused.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function expectFileRefusal(error: any, filename: string, code: 'SQLITE_NOTADB' |
6464
expect(error?.filename).toBe(filename);
6565
expect(String(error?.message)).toContain(`SQLite database file '${filename}'`);
6666
expect(String(error?.message)).toContain(
67-
`To start from an empty database, move the file aside yourself (mv '${filename}' '${filename}.unreadable') and start again; to keep its data, restore a copy that opens.`,
67+
`To start from an empty database, move the file aside yourself (mv '${filename}' '${filename}.unreadable') and start again; to keep its data, restore a copy that opens`,
6868
);
6969
}
7070

‎packages/drivers/driver-sqlite-wasm/src/wasm-connection.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function unreadableDatabaseFileRefusal(
118118
const refusal = new Error(
119119
`wasm SQLite cannot read it (${reason}). To start from an empty database, move the ` +
120120
`file aside yourself (mv '${filename}' '${filename}.unreadable') and start again; ` +
121-
`to keep its data, restore a copy that opens.`,
121+
`to keep its data, restore a copy that opens`,
122122
) as UnreadableDatabaseFileRefusal;
123123
refusal.code = reason === SQLITE_NOTADB_ERRSTR ? 'SQLITE_NOTADB' : 'SQLITE_CORRUPT';
124124
refusal.filename = filename;

0 commit comments

Comments
 (0)