Skip to content

Commit d1804ba

Browse files
committed
change sqlpage.link error message format
1 parent 03e1d65 commit d1804ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webserver/database/sqlpage_functions/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ async fn link<'a>(
397397
let mut url = file.into_owned();
398398
if let Some(parameters) = parameters {
399399
let encoded = serde_json::from_str::<URLParameters>(&parameters)
400-
.with_context(|| format!("sqlpage.link: {parameters:?} is not a valid JSON object. Expected usage: sqlpage.link(filename, json_parameters)"))?;
400+
.with_context(|| format!("sqlpage.link: {parameters:?} is not a valid JSON object. The URL parameters should be passed as a json object with parameter names as keys."))?;
401401
encoded.append_to_path(&mut url);
402402
}
403403
if let Some(hash) = hash {

0 commit comments

Comments
 (0)