From b1c4142296e1a14e02c7973443628bd95f94e994 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Mon, 6 May 2024 16:49:01 -0500 Subject: [PATCH] chg: Reply when shortlink cannot be added --- actix/src/utils.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/actix/src/utils.rs b/actix/src/utils.rs index 5e4a951..2b47783 100644 --- a/actix/src/utils.rs +++ b/actix/src/utils.rs @@ -69,7 +69,10 @@ pub fn add_link(req: String, db: &Connection) -> (bool, String) { chunks.shortlink, ) } else { - (false, String::from("shortUrl not valid or already in use")) + ( + false, + String::from("Short URL not valid or already in use!"), + ) } }