@@ -130,7 +130,8 @@ SortedDictionary<string, SortedDictionary<string, string>> snippetsMap
130
130
try
131
131
{
132
132
settingsJson = JsonNode . Parse ( settings ) ? . AsObject ( ) ;
133
- if ( settingsJson == null ) {
133
+ if ( settingsJson == null )
134
+ {
134
135
throw new Exception ( "Setting must be a JSON object: " + settings ) ;
135
136
}
136
137
}
@@ -548,10 +549,13 @@ ProcessStartInfo killStartInfo
548
549
startInfo . WindowStyle = ProcessWindowStyle . Hidden ;
549
550
startInfo . UseShellExecute = false ;
550
551
Process ? killer = Process . Start ( killStartInfo ) ;
551
- if ( killer == null ) {
552
+ if ( killer == null )
553
+ {
552
554
process . Kill ( true ) ;
553
- process . WaitForExit ( ) ;
554
- } else {
555
+ process . WaitForExit ( ) ;
556
+ }
557
+ else
558
+ {
555
559
killer . WaitForExit ( ) ;
556
560
process . WaitForExit ( ) ;
557
561
}
@@ -630,9 +634,9 @@ static string SetupTempRepository(InstallLocations senzingInstall)
630
634
}
631
635
632
636
string supportPath = supportDir . FullName . Replace ( "\\ " , "\\ \\ " ) ;
633
- string configPath = configDir . FullName . Replace ( "\\ " , "\\ \\ " ) ; ;
634
- string resourcePath = resourcesDir . FullName . Replace ( "\\ " , "\\ \\ " ) ; ;
635
- string baseConfig = File . ReadAllText ( configFile ) . Replace ( "\\ " , "\\ \\ " ) ; ;
637
+ string configPath = configDir . FullName . Replace ( "\\ " , "\\ \\ " ) ; ;
638
+ string resourcePath = resourcesDir . FullName . Replace ( "\\ " , "\\ \\ " ) ; ;
639
+ string baseConfig = File . ReadAllText ( configFile ) . Replace ( "\\ " , "\\ \\ " ) ; ;
636
640
string settings = $$ """
637
641
{
638
642
"PIPELINE": {
@@ -655,6 +659,11 @@ static string SetupTempRepository(InstallLocations senzingInstall)
655
659
configMgr . SetDefaultConfigID ( configID ) ;
656
660
657
661
}
662
+ catch ( Exception )
663
+ {
664
+ Console . Error . WriteLine ( settings ) ;
665
+ throw ;
666
+ }
658
667
finally
659
668
{
660
669
env . Destroy ( ) ;
0 commit comments