mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-26 23:58:35 -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,
|
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!"),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue