From 57264f72e91f2fef41345e6166e9b1adebd5fc8a Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 9 Apr 2020 21:19:27 +0200 Subject: [PATCH] Fix avatar_url error message if not starting with mxc:// Took 8 minutes --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e85d90b3..17d01f51 100644 --- a/src/main.rs +++ b/src/main.rs @@ -365,7 +365,7 @@ fn set_avatar_url_route( debug!("Request contains an invalid avatar_url."); return MatrixResult(Err(Error { kind: ErrorKind::InvalidParam, - message: "Missing avatar_url".to_owned(), + message: "avatar_url has to start with mxc://.".to_owned(), status_code: http::StatusCode::BAD_REQUEST, })); }