File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ pub fn delete(args: Args) -> Result<()> {
18
18
19
19
match diesel:: delete ( tags:: table. filter ( tags:: key. eq ( key) ) ) . execute ( & conn) {
20
20
Ok ( _) => args. msg . react ( args. cx , "✅" ) ?,
21
- Err ( _) => api:: send_reply ( & args, "An error occured " ) ?,
21
+ Err ( _) => api:: send_reply ( & args, "A database error occurred when deleting the tag. " ) ?,
22
22
}
23
23
}
24
24
Ok ( ( ) )
@@ -44,8 +44,10 @@ pub fn post(args: Args) -> Result<()> {
44
44
. execute ( & conn)
45
45
{
46
46
Ok ( _) => args. msg . react ( args. cx , "✅" ) ?,
47
- Err ( _) => api:: send_reply ( & args, "An error occured " ) ?,
47
+ Err ( _) => api:: send_reply ( & args, "A database error occurred when creating the tag. " ) ?,
48
48
}
49
+ } else {
50
+ api:: send_reply ( & args, "Please reach out to a Rust team/WG member to create a tag." ) ?;
49
51
}
50
52
51
53
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments