File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/Common/Commands.ScenarioTests.Common Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -293,14 +293,15 @@ public virtual Collection<PSObject> RunPowerShellTest(params string[] scripts)
293
293
if ( powershell . Streams . Error . Count > 0 )
294
294
{
295
295
var sb = new StringBuilder ( ) ;
296
+
297
+ sb . AppendLine ( "Test failed due to a non-empty error stream, check the error stream in the test log for more details." ) ;
298
+ sb . AppendLine ( string . Format ( "{0} total Errors" , powershell . Streams . Error . Count ) ) ;
296
299
foreach ( var error in powershell . Streams . Error )
297
300
{
298
- sb . AppendLine ( error . ErrorDetails . Message ) ;
301
+ sb . AppendLine ( error . Exception . ToString ( ) ) ;
299
302
}
300
303
301
- throw new RuntimeException (
302
- "Test failed due to a non-empty error stream, check the error stream in the test log for more details.\r \n " +
303
- sb . ToString ( ) ) ;
304
+ throw new RuntimeException ( sb . ToString ( ) ) ;
304
305
}
305
306
306
307
return output ;
You can’t perform that action at this time.
0 commit comments