in packages/synthetics-sdk-broken-links/src/storage_func.ts [120:138]
export function createStorageClientIfStorageSelected(
errors: BaseError[],
captureCondition: ApiCaptureCondition
): Storage | null {
if (captureCondition === ApiCaptureCondition.NONE) return null;
try {
return new Storage();
} catch (err) {
console.error('StorageClientInitializationError', err);
errors.push({
error_type: 'StorageClientInitializationError',
error_message:
'Failed to initialize Storage client. Please reference server logs for further information.',
});
return null;
}
}