@@ -25,7 +25,7 @@ import {
2525 GLOBAL_REGION ,
2626} from '../config/constants'
2727import { obfuscateSensitiveString } from '../utils/format'
28- import { checkAndMergeConnections , sortResourcesDependencies } from '../utils'
28+ import { getAllProviderErrors , sortResourcesDependencies } from '../utils'
2929import { createDiffSecs } from '../utils/dateutils'
3030import {
3131 getClientSecretCredentials ,
@@ -151,9 +151,10 @@ export default class Provider extends CloudGraph.Client {
151151 ) } `
152152 )
153153 this . logger . success (
154- `subscriptionIds: ${ this . subscriptions . length > 1
155- ? this . subscriptions . join ( ', ' )
156- : this . subscriptions [ 0 ]
154+ `subscriptionIds: ${
155+ this . subscriptions . length > 1
156+ ? this . subscriptions . join ( ', ' )
157+ : this . subscriptions [ 0 ]
157158 } `
158159 )
159160 this . logger . success (
@@ -700,11 +701,15 @@ export default class Provider extends CloudGraph.Client {
700701 }
701702 }
702703
703- return this . enhanceData ( {
704+ const enhancedData = await this . enhanceData ( {
704705 subscriptions : subscriptions . data [ GLOBAL_REGION ] ,
705706 configuredRegions,
706707 rawData,
707708 data : result ,
708709 } )
710+
711+ const errors = getAllProviderErrors ( )
712+
713+ return { ...enhancedData , errors }
709714 }
710715}
0 commit comments