Skip to content

Commit 1d99888

Browse files
authored
Do not throw an error if the table exists on startup even if its name is not 'session' (#6)
1 parent a730a64 commit 1d99888

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SqliteStore extends EventEmitter {
2424
)`
2525
)
2626
} catch (err) {
27-
if (err.toString() !== 'SqliteError: table session already exists') {
27+
if (err.toString() !== `SqliteError: table ${table} already exists`) {
2828
throw err
2929
}
3030
}

0 commit comments

Comments
 (0)