@@ -372,7 +372,7 @@ public ConcurrentDictionary<string, PackageResult> install_run(ChocolateyConfigu
372
372
this . Log ( ) . Warn ( ChocolateyLoggers . Important , "Warnings:" ) ;
373
373
foreach ( var warning in packageInstalls . Where ( p => p . Value . Warning ) . or_empty_list_if_null ( ) )
374
374
{
375
- this . Log ( ) . Warn ( ChocolateyLoggers . Important , " - {0}" . format_with ( warning . Value . Name ) ) ;
375
+ this . Log ( ) . Warn ( ChocolateyLoggers . Important , " - {0}{1} " . format_with ( warning . Value . Name , warning . Value . ExitCode != 0 ? " (exit code {0})" . format_with ( warning . Value . ExitCode ) : string . Empty ) ) ;
376
376
}
377
377
}
378
378
@@ -381,7 +381,7 @@ public ConcurrentDictionary<string, PackageResult> install_run(ChocolateyConfigu
381
381
this . Log ( ) . Error ( "Failures:" ) ;
382
382
foreach ( var failure in packageInstalls . Where ( p => ! p . Value . Success ) . or_empty_list_if_null ( ) )
383
383
{
384
- this . Log ( ) . Error ( " - {0}" . format_with ( failure . Value . Name ) ) ;
384
+ this . Log ( ) . Error ( " - {0}{1} " . format_with ( failure . Value . Name , failure . Value . ExitCode != 0 ? " (exit code {0})" . format_with ( failure . Value . ExitCode ) : string . Empty ) ) ;
385
385
}
386
386
}
387
387
@@ -574,7 +574,7 @@ public ConcurrentDictionary<string, PackageResult> upgrade_run(ChocolateyConfigu
574
574
this . Log ( ) . Warn ( ChocolateyLoggers . Important , "Warnings:" ) ;
575
575
foreach ( var warning in packageUpgrades . Where ( p => p . Value . Warning ) . or_empty_list_if_null ( ) )
576
576
{
577
- this . Log ( ) . Warn ( ChocolateyLoggers . Important , " - {0}" . format_with ( warning . Value . Name ) ) ;
577
+ this . Log ( ) . Warn ( ChocolateyLoggers . Important , " - {0}{1} " . format_with ( warning . Value . Name , warning . Value . ExitCode != 0 ? " (exit code {0})" . format_with ( warning . Value . ExitCode ) : string . Empty ) ) ;
578
578
}
579
579
}
580
580
@@ -583,7 +583,7 @@ public ConcurrentDictionary<string, PackageResult> upgrade_run(ChocolateyConfigu
583
583
this . Log ( ) . Error ( "Failures:" ) ;
584
584
foreach ( var failure in packageUpgrades . Where ( p => ! p . Value . Success ) . or_empty_list_if_null ( ) )
585
585
{
586
- this . Log ( ) . Error ( " - {0}" . format_with ( failure . Value . Name ) ) ;
586
+ this . Log ( ) . Error ( " - {0}{1} " . format_with ( failure . Value . Name , failure . Value . ExitCode != 0 ? " (exit code {0})" . format_with ( failure . Value . ExitCode ) : string . Empty ) ) ;
587
587
}
588
588
}
589
589
@@ -654,7 +654,7 @@ public ConcurrentDictionary<string, PackageResult> uninstall_run(ChocolateyConfi
654
654
this . Log ( ) . Error ( "Failures" ) ;
655
655
foreach ( var failure in packageUninstalls . Where ( p => ! p . Value . Success ) . or_empty_list_if_null ( ) )
656
656
{
657
- this . Log ( ) . Error ( " - {0}" . format_with ( failure . Value . Name ) ) ;
657
+ this . Log ( ) . Error ( " - {0}{1} " . format_with ( failure . Value . Name , failure . Value . ExitCode != 0 ? " (exit code {0})" . format_with ( failure . Value . ExitCode ) : string . Empty ) ) ;
658
658
}
659
659
}
660
660
0 commit comments