Skip to content

Commit

Permalink
docs: update message
Browse files Browse the repository at this point in the history
  • Loading branch information
std-microblock authored Aug 13, 2024
1 parent 4985924 commit 2c5332a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sqlite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class SQLiteDriver extends Driver<SQLiteDriver.Config> {
})

if (this.path !== ':memory:' && !(await access(resolve(this.path, '..')).then(() => true).catch(() => false)))
throw new Error(`The database directory '${resolve(this.path, '..')}' does not exist. You may have to create it first.`)
throw new Error(`The database directory '${resolve(this.path, '..')}' is not accessible. You may have to create it first.`)

Check failure on line 171 in packages/sqlite/src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Expected { after 'if' condition
if (!isBrowser || this.path === ':memory:') {
this.db = new sqlite.Database(this.path)
} else {
Expand Down

0 comments on commit 2c5332a

Please sign in to comment.