File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -291,13 +291,25 @@ impl TmcClient {
291291 locale : Option < Language > ,
292292 ) -> Result < NewSubmission , ClientError > {
293293 // compress
294+ start_stage ( 2 , "Compressing paste submission..." , None ) ;
294295 let compressed = tmc_langs_plugins:: compress_project ( submission_path) ?;
295296 let mut file = NamedTempFile :: new ( ) . map_err ( ClientError :: TempFile ) ?;
296297 file. write_all ( & compressed) . map_err ( |e| {
297298 ClientError :: FileError ( FileError :: FileWrite ( file. path ( ) . to_path_buf ( ) , e) )
298299 } ) ?;
300+ progress_stage (
301+ "Compressed paste submission. Posting paste submission..." ,
302+ None ,
303+ ) ;
304+
305+ let result =
306+ self . post_submission_to_paste ( submission_url, file. path ( ) , paste_message, locale) ?;
299307
300- self . post_submission_to_paste ( submission_url, file. path ( ) , paste_message, locale)
308+ finish_stage (
309+ format ! ( "Paste finished, running at {0}" , result. paste_url) ,
310+ ClientUpdateData :: PostedSubmission ( result. clone ( ) ) ,
311+ ) ;
312+ Ok ( result)
301313 }
302314
303315 /// Sends feedback.
You can’t perform that action at this time.
0 commit comments