File tree Expand file tree Collapse file tree 1 file changed +25
-4
lines changed
crates/extension_host/src Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -755,8 +755,18 @@ impl WasmExtension {
755
755
}
756
756
. boxed ( )
757
757
} ) )
758
- . expect ( "wasm extension channel should not be closed yet" ) ;
759
- return_rx. await . expect ( "wasm extension channel" )
758
+ . unwrap_or_else ( |_| {
759
+ panic ! (
760
+ "wasm extension channel should not be closed yet, extension {} (id {})" ,
761
+ self . manifest. name, self . manifest. id,
762
+ )
763
+ } ) ;
764
+ return_rx. await . unwrap_or_else ( |_| {
765
+ panic ! (
766
+ "wasm extension channel, extension {} (id {})" ,
767
+ self . manifest. name, self . manifest. id,
768
+ )
769
+ } )
760
770
}
761
771
}
762
772
@@ -777,8 +787,19 @@ impl WasmState {
777
787
}
778
788
. boxed_local ( )
779
789
} ) )
780
- . expect ( "main thread message channel should not be closed yet" ) ;
781
- async move { return_rx. await . expect ( "main thread message channel" ) }
790
+ . unwrap_or_else ( |_| {
791
+ panic ! (
792
+ "main thread message channel should not be closed yet, extension {} (id {})" ,
793
+ self . manifest. name, self . manifest. id,
794
+ )
795
+ } ) ;
796
+ let name = self . manifest . name . clone ( ) ;
797
+ let id = self . manifest . id . clone ( ) ;
798
+ async move {
799
+ return_rx. await . unwrap_or_else ( |_| {
800
+ panic ! ( "main thread message channel, extension {name} (id {id})" )
801
+ } )
802
+ }
782
803
}
783
804
784
805
fn work_dir ( & self ) -> PathBuf {
You can’t perform that action at this time.
0 commit comments