Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmytro Ovcharov <dmytro.ovcharov@globallogic.com>2017-11-24 15:09:41 +0300
committerDmytro Ovcharov <dmytro.ovcharov@globallogic.com>2017-11-24 15:09:41 +0300
commit289c43e689b683b7fc5edfa75fde3eb59deb4106 (patch)
treef6ca6c0c57b06b10c9de2b8e14d58bfe188db754 /main/src/addins/MonoDevelop.UnitTesting.NUnit
parent2fdccb3e39fe45de54575939912551a35c00cbba (diff)
Changed exception catching logic in NUnitAssemblyTestSuit and removed updating for project references
Diffstat (limited to 'main/src/addins/MonoDevelop.UnitTesting.NUnit')
-rw-r--r--main/src/addins/MonoDevelop.UnitTesting.NUnit/MonoDevelop.UnitTesting.NUnit/NUnitAssemblyTestSuite.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/main/src/addins/MonoDevelop.UnitTesting.NUnit/MonoDevelop.UnitTesting.NUnit/NUnitAssemblyTestSuite.cs b/main/src/addins/MonoDevelop.UnitTesting.NUnit/MonoDevelop.UnitTesting.NUnit/NUnitAssemblyTestSuite.cs
index 4429551d76..65269df490 100644
--- a/main/src/addins/MonoDevelop.UnitTesting.NUnit/MonoDevelop.UnitTesting.NUnit/NUnitAssemblyTestSuite.cs
+++ b/main/src/addins/MonoDevelop.UnitTesting.NUnit/MonoDevelop.UnitTesting.NUnit/NUnitAssemblyTestSuite.cs
@@ -334,9 +334,13 @@ namespace MonoDevelop.UnitTesting.NUnit
runner.Connect (ld.NUnitVersion).Wait ();
ld.Info = runner.GetTestInfo (ld.Path, ld.SupportAssemblies).Result;
}
- } catch (Exception ex) {
- Console.WriteLine (ex.InnerException);
- ld.Error = ex.InnerException;
+ } catch (AggregateException exception){
+ var baseException = exception.GetBaseException ();
+ Console.WriteLine (baseException);
+ ld.Error = baseException;
+ } catch (Exception exception) {
+ Console.WriteLine (exception);
+ ld.Error = exception;
}
finally {
try {