mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-26 07:38:36 -06:00
chg: Reply when shortlink cannot be added
This commit is contained in:
parent
75912e8f9d
commit
b1c4142296
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue