cli: fix error message for missing embedded-postgres dependency
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor
This commit is contained in:
@@ -23,8 +23,9 @@ export async function startEmbeddedDb() {
|
||||
const { default: EmbeddedPostgres } = await import('embedded-postgres').catch(
|
||||
error => {
|
||||
throw new Error(
|
||||
`Failed to load peer dependency 'embedded-postgres' for generating SQL reports. ` +
|
||||
`It must be installed as an explicit dependency in your project. Caused by; ${error}`,
|
||||
`Failed to load 'embedded-postgres' which is required when using ` +
|
||||
`'embedded-postgres' as the database client. It must be installed as ` +
|
||||
`an explicit dependency in your project. Caused by: ${error}`,
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user