1- using CliFx . Exceptions ;
21using ebuild . api ;
32using ebuild . BuildGraph ;
43using Microsoft . Extensions . Logging ;
@@ -29,7 +28,7 @@ public async Task WorkOnNodesAsync(List<Node> nodes, CancellationToken cancellat
2928 catch ( Exception exception )
3029 {
3130 // If there was an error promote it to clifx exception
32- throw new CliFxException ( $ "Pre-build step \" { step . Name } \" failed: { exception . Message } ", 1 , false , exception ) ;
31+ throw new Exception ( $ "Pre-build step \" { step . Name } \" failed: { exception . Message } ", exception ) ;
3332 }
3433 }
3534 }
@@ -57,10 +56,8 @@ await Parallel.ForEachAsync(
5756 if ( exceptions . Count > 0 )
5857 {
5958 // Aggregate all exceptions and throw as CliFxException
60- throw new CliFxException (
59+ throw new Exception (
6160 $ "Compilation of { Module . Name } failed with { exceptions . Count } source file uncompiled(s): { string . Join ( "; " , exceptions . Select ( e => e . Message ) ) } ",
62- 1 ,
63- false ,
6461 new AggregateException ( exceptions )
6562 ) ;
6663 }
@@ -75,7 +72,7 @@ await Parallel.ForEachAsync(
7572 }
7673 catch ( Exception ex )
7774 {
78- throw new CliFxException ( $ "Linking failed: { ex . Message } ", 1 , false , ex ) ;
75+ throw new Exception ( $ "Linking failed: { ex . Message } ", ex ) ;
7976 }
8077 }
8178 }
@@ -88,7 +85,7 @@ await Parallel.ForEachAsync(
8885 }
8986 catch ( Exception ex )
9087 {
91- throw new CliFxException ( $ "Copying shared library failed: { ex . Message } ", 1 , false , ex ) ;
88+ throw new Exception ( $ "Copying shared library failed: { ex . Message } ", ex ) ;
9289 }
9390 }
9491 // 3rd run additional dependency nodes non-parallel
@@ -100,7 +97,7 @@ await Parallel.ForEachAsync(
10097 }
10198 catch ( Exception ex )
10299 {
103- throw new CliFxException ( $ "Processing additional dependency failed: { ex . Message } ", 1 , false , ex ) ;
100+ throw new Exception ( $ "Processing additional dependency failed: { ex . Message } ", ex ) ;
104101 }
105102 }
106103
@@ -116,7 +113,7 @@ await Parallel.ForEachAsync(
116113 catch ( Exception exception )
117114 {
118115 // If there was an error promote it to clifx exception
119- throw new CliFxException ( $ "Post-build step \" { step . Name } \" failed: { exception . Message } ", 1 , false , exception ) ;
116+ throw new Exception ( $ "Post-build step \" { step . Name } \" failed: { exception . Message } ", exception ) ;
120117 }
121118 }
122119
0 commit comments