Skip to content

Commit

Permalink
chg: Reply when shortlink cannot be added
Browse files Browse the repository at this point in the history
  • Loading branch information
SinTan1729 committed May 6, 2024
1 parent 75912e8 commit b1c4142
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion actix/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!"),
)
}
}

Expand Down

0 comments on commit b1c4142

Please sign in to comment.