File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -98,16 +98,20 @@ impl<'a> TsGoLintState<'a> {
9898 } ;
9999
100100 let handler = std:: thread:: spawn ( move || {
101- let child = std:: process:: Command :: new ( self . executable_path )
101+ let child = std:: process:: Command :: new ( & self . executable_path )
102102 . arg ( "headless" )
103103 . stdin ( std:: process:: Stdio :: piped ( ) )
104104 . stdout ( std:: process:: Stdio :: piped ( ) )
105105 . spawn ( ) ;
106106
107- let Ok ( mut child) = child else {
108- // For now, silently ignore errors if `tsgolint` does not appear to be installed, or cannot
109- // be spawned correctly.
110- return Ok ( ( ) ) ;
107+ let mut child = match child {
108+ Ok ( c) => c,
109+ Err ( e) => {
110+ return Err ( format ! (
111+ "Failed to spawn tsgolint from path `{}`, with error: {e}" ,
112+ self . executable_path. display( )
113+ ) ) ;
114+ }
111115 } ;
112116
113117 let mut stdin = child. stdin . take ( ) . expect ( "Failed to open tsgolint stdin" ) ;
You can’t perform that action at this time.
0 commit comments