mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-22 17:26:45 +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,
|
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 New Issue
Block a user