mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-12-22 19:57:57 +00:00
chg: Reply when shortlink cannot be added
This commit is contained in:
parent
75912e8f9d
commit
b1c4142296
@ -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!"),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user