File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/Common/Commands.ScenarioTests.Common Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 27
27
using System . Management . Automation ;
28
28
using System . Security . Cryptography . X509Certificates ;
29
29
using Microsoft . Azure . ServiceManagemenet . Common ;
30
+ using System . Text ;
30
31
31
32
namespace Microsoft . WindowsAzure . Commands . ScenarioTest
32
33
{
@@ -291,8 +292,15 @@ public virtual Collection<PSObject> RunPowerShellTest(params string[] scripts)
291
292
292
293
if ( powershell . Streams . Error . Count > 0 )
293
294
{
295
+ var sb = new StringBuilder ( ) ;
296
+ foreach ( var error in powershell . Streams . Error )
297
+ {
298
+ sb . AppendLine ( error . ErrorDetails . Message ) ;
299
+ }
300
+
294
301
throw new RuntimeException (
295
- "Test failed due to a non-empty error stream, check the error stream in the test log for more details." ) ;
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 ( ) ) ;
296
304
}
297
305
298
306
return output ;
You can’t perform that action at this time.
0 commit comments