@@ -63,6 +63,8 @@ impl Problem {
63
63
. await ?;
64
64
if status. state == "SUCCESS" {
65
65
return Ok ( status) ;
66
+ } else if status. state == "FAILURE" {
67
+ return Err ( Errors :: SendError ( "Sent code failure. Err may be occured by Unsupported lang for this problem" . into ( ) ) ) ;
66
68
}
67
69
tokio:: time:: sleep ( Duration :: from_secs ( 1 ) ) . await ;
68
70
}
@@ -101,6 +103,8 @@ impl Problem {
101
103
. await ?;
102
104
if status. state == "SUCCESS" {
103
105
return Ok ( status) ;
106
+ } else if status. state == "FAILURE" {
107
+ return Err ( Errors :: SendError ( "Sent code failure. Err may be occured by Unsupported lang for this problem" . into ( ) ) ) ;
104
108
}
105
109
tokio:: time:: sleep ( Duration :: from_secs ( 1 ) ) . await ;
106
110
}
@@ -130,6 +134,7 @@ impl Problem {
130
134
ProgrammingLanguage :: Dart => "dart" ,
131
135
ProgrammingLanguage :: Pandas => "pandas" ,
132
136
ProgrammingLanguage :: React => "react" ,
137
+ ProgrammingLanguage :: ADas => "safa"
133
138
}
134
139
}
135
140
pub fn code_snippets ( & self ) -> Option < Vec < CodeSnippetNode > > {
0 commit comments