chg: Reply when shortlink cannot be added

This commit is contained in:
SinTan1729 2024-05-06 16:49:01 -05:00
parent 75912e8f9d
commit b1c4142296
No known key found for this signature in database
GPG Key ID: EB3E68BFBA25C85F

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!"),
)
} }
} }