Skip to content

Commit

Permalink
chore: update error
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Jan 24, 2025
1 parent 71f48c4 commit d896480
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/runtime/internal/connectors/node-sqlite3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface ConnectorOptions {
name?: string
}

export default function sqliteConnector(opts: ConnectorOptions) {
export default function nodeSqlite3Connector(opts: ConnectorOptions) {
let _db: sqlite3.Database
const getDB = () => {
if (_db) {
Expand All @@ -30,7 +30,7 @@ export default function sqliteConnector(opts: ConnectorOptions) {
}

return <Connector>{
name: 'sqlite3',
name: 'node-sqlite3',
dialect: 'sqlite',
exec(sql: string) {
return getDB().exec(sql)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function isSqlite3Available() {
return true
}
catch {
logger.error('sqlite3 is not available in the current environment')
logger.error('Nuxt Content requires `sqlite3` module to work in WebContainer environment. Please run `npm install sqlite3` to install it and try again.')
process.exit(1)
}
}
Expand Down

0 comments on commit d896480

Please sign in to comment.