chg: Reply when shortlink cannot be added

This commit is contained in:
Sayantan Santra 2024-05-06 16:49:01 -05:00
parent 75912e8f9d
commit b1c4142296
Signed by: SinTan1729
GPG Key ID: EB3E68BFBA25C85F
1 changed files with 4 additions and 1 deletions

View File

@ -69,7 +69,10 @@ pub fn add_link(req: String, db: &Connection) -> (bool, String) {
chunks.shortlink, chunks.shortlink,
) )
} else { } else {
(false, String::from("shortUrl not valid or already in use")) (
false,
String::from("Short URL not valid or already in use!"),
)
} }
} }