Skip to content

Commit 671452b

Browse files
authored
fix: broken links (#5700)
This follows-up on prisma/prisma#28598. --------- Co-authored-by: jkomyno <12381818+jkomyno@users.noreply.github.com>
1 parent d9cee0d commit 671452b

3 files changed

Lines changed: 12 additions & 14 deletions

File tree

libs/user-facing-errors/src/quaint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl From<quaint::error::DatabaseConstraint> for query_engine::DatabaseConstrain
3434
}
3535

3636
pub fn invalid_connection_string_description(error_details: &str) -> String {
37-
let docs = r#"https://www.prisma.io/docs/reference/database-reference/connection-urls"#;
37+
let docs = r#"https://pris.ly/d/config-url"#;
3838

3939
let details = formatdoc! {r#"
4040
{} in database URL. Please refer to the documentation in {} for constructing a correct

schema-engine/connectors/schema-connector/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ impl From<ReadMigrationScriptError> for ConnectorError {
293293
}
294294

295295
fn invalid_connection_string_description(error_details: impl Display) -> String {
296-
let docs = r#"https://www.prisma.io/docs/reference/database-reference/connection-urls"#;
296+
let docs = r#"https://pris.ly/d/config-url"#;
297297

298298
format! {r#"{error_details} in database URL. Please refer to the documentation in {docs} for constructing a correct connection string. In some cases, certain characters must be escaped. Please check the string for any illegal characters."#}
299299
}

schema-engine/sql-migration-tests/tests/errors/error_tests.rs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -472,22 +472,20 @@ async fn connection_string_problems_give_a_nice_error() {
472472
let json_error = serde_json::to_value(error.to_user_facing()).unwrap();
473473

474474
let details = match provider {
475-
"sqlserver" => {
476-
indoc!(
477-
"Error parsing connection string: Conversion error: invalid digit found in string in database URL.
478-
Please refer to the documentation in https://www.prisma.io/docs/reference/database-reference/connection-urls
475+
"sqlserver" => indoc!(
476+
"Error parsing connection string: Conversion error: invalid digit found in string in database URL.
477+
Please refer to the documentation in https://pris.ly/d/config-url
479478
for constructing a correct connection string. In some cases, certain characters must be escaped.
480479
Please check the string for any illegal characters.",
481-
).replace('\n', " ")
482-
},
483-
_ => {
484-
indoc!(
485-
"invalid port number in database URL.
486-
Please refer to the documentation in https://www.prisma.io/docs/reference/database-reference/connection-urls
480+
)
481+
.replace('\n', " "),
482+
_ => indoc!(
483+
"invalid port number in database URL.
484+
Please refer to the documentation in https://pris.ly/d/config-url
487485
for constructing a correct connection string. In some cases, certain characters must be escaped.
488486
Please check the string for any illegal characters.",
489-
).replace('\n', " ")
490-
}
487+
)
488+
.replace('\n', " "),
491489
};
492490

493491
let expected = json!({

0 commit comments

Comments
 (0)