File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
+ using System . ComponentModel ;
3
4
using System . Diagnostics ;
4
5
using System . IO ;
5
6
using System . Text ;
6
- using System . Threading . Tasks ;
7
+
7
8
using ConsoleTables ;
8
9
using Coverlet . Console . Logging ;
9
10
using Coverlet . Core ;
@@ -240,6 +241,11 @@ static int Main(string[] args)
240
241
app . ShowHelp ( ) ;
241
242
return ( int ) CommandExitCodes . CommandParsingException ;
242
243
}
244
+ catch ( Win32Exception we ) when ( we . Source == "System.Diagnostics.Process" )
245
+ {
246
+ logger . LogError ( $ "Start process '{ target . Value ( ) } ' failed with '{ we . Message } '") ;
247
+ return exitCode > 0 ? exitCode : ( int ) CommandExitCodes . Exception ;
248
+ }
243
249
catch ( Exception ex )
244
250
{
245
251
logger . LogError ( ex . Message ) ;
You can’t perform that action at this time.
0 commit comments