@@ -130,7 +130,8 @@ SortedDictionary<string, SortedDictionary<string, string>> snippetsMap
130130 try
131131 {
132132 settingsJson = JsonNode . Parse ( settings ) ? . AsObject ( ) ;
133- if ( settingsJson == null ) {
133+ if ( settingsJson == null )
134+ {
134135 throw new Exception ( "Setting must be a JSON object: " + settings ) ;
135136 }
136137 }
@@ -548,10 +549,13 @@ ProcessStartInfo killStartInfo
548549 startInfo . WindowStyle = ProcessWindowStyle . Hidden ;
549550 startInfo . UseShellExecute = false ;
550551 Process ? killer = Process . Start ( killStartInfo ) ;
551- if ( killer == null ) {
552+ if ( killer == null )
553+ {
552554 process . Kill ( true ) ;
553- process . WaitForExit ( ) ;
554- } else {
555+ process . WaitForExit ( ) ;
556+ }
557+ else
558+ {
555559 killer . WaitForExit ( ) ;
556560 process . WaitForExit ( ) ;
557561 }
@@ -630,9 +634,9 @@ static string SetupTempRepository(InstallLocations senzingInstall)
630634 }
631635
632636 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 ( "\\ " , "\\ \\ " ) ; ;
636640 string settings = $$ """
637641 {
638642 "PIPELINE": {
@@ -655,6 +659,11 @@ static string SetupTempRepository(InstallLocations senzingInstall)
655659 configMgr . SetDefaultConfigID ( configID ) ;
656660
657661 }
662+ catch ( Exception )
663+ {
664+ Console . Error . WriteLine ( settings ) ;
665+ throw ;
666+ }
658667 finally
659668 {
660669 env . Destroy ( ) ;
0 commit comments