diff --git a/tdrive/backend/node/src/core/platform/services/storage/oneof-storage-strategy.ts b/tdrive/backend/node/src/core/platform/services/storage/oneof-storage-strategy.ts index b71c7026..5d0a8569 100644 --- a/tdrive/backend/node/src/core/platform/services/storage/oneof-storage-strategy.ts +++ b/tdrive/backend/node/src/core/platform/services/storage/oneof-storage-strategy.ts @@ -125,8 +125,16 @@ export class OneOfStorageStrategy implements StorageConnectorAPI { */ exists = async (path: string, options?: ReadOptions): Promise => { for (const storage of this.storages) { - if (await storage.exists(path, options)) { - return true; + try { + if (await storage.exists(path, options)) { + return true; + } + } catch (e) { + throw new OneOfStorageReadOneFailedException( + storage.getId(), + `Reading ${path} from storage ${storage} failed.`, + e, + ); } } return false;