Skip to content

Commit 9437e1c

Browse files
committed
Fix error message
1 parent e993d21 commit 9437e1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

schema-engine/cli/tests/cli_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ fn test_sqlite_url(api: TestApi) {
192192
assert!(!output.status.success());
193193
let message = String::from_utf8(output.stderr).unwrap();
194194
assert!(message.contains(
195-
"Prisma cannot determine the connector. Expecting postgres/postgresql/file/mysql/sqlserver/mongodb+srv/mongodb"
195+
"The provided database string is invalid. Expecting schemes postgres/postgresql/file/mysql/sqlserver/mongodb+srv/mongodb in database URL."
196196
));
197197
}
198198

schema-engine/core/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ fn connector_for_connection_string(
9090
Ok(Box::new(connector))
9191
}
9292
Some(_other) => Err(CoreError::url_parse_error(format!(
93-
"Prisma cannot determine the connector. Expecting postgres/postgresql/file/mysql/sqlserver/mongodb+srv/mongodb"
93+
"Expecting schemes postgres/postgresql/file/mysql/sqlserver/mongodb+srv/mongodb"
9494
))),
9595
None => Err(CoreError::user_facing(InvalidConnectionString {
9696
details: String::new(),

0 commit comments

Comments
 (0)