File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -249,6 +249,8 @@ impl DictionaryManager {
249249 params. insert ( "key" . to_string ( ) , snippet. clone ( ) ) ;
250250 ( "snippet.already_exist" . to_string ( ) , Some ( params) )
251251 }
252+ CommandError :: StatusIsMissing => ( "status.status_is_missing" . to_string ( ) , None ) ,
253+ CommandError :: InvalidStatusValue => ( "status.invalid_status" . to_string ( ) , None ) ,
252254 _ => ( "command.invalid_format" . to_string ( ) , None ) ,
253255 } ,
254256 ModmailError :: Thread ( thread_err) => match thread_err {
Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ pub enum CommandError {
6868 SnippetAlreadyExists ( String ) ,
6969 InvalidSnippetKeyFormat ,
7070 SnippetContentTooLong ,
71+ StatusIsMissing ,
72+ InvalidStatusValue ,
7173}
7274
7375#[ derive( Debug , Clone ) ]
@@ -182,6 +184,8 @@ impl fmt::Display for CommandError {
182184 CommandError :: SnippetAlreadyExists ( name) => {
183185 write ! ( f, "Snippet already exists: {}" , name)
184186 }
187+ CommandError :: StatusIsMissing => write ! ( f, "Status is missing" ) ,
188+ CommandError :: InvalidStatusValue => write ! ( f, "Invalid status value" ) ,
185189 }
186190 }
187191}
You can’t perform that action at this time.
0 commit comments