fix: remove error message

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2025-05-16 14:20:08 +07:00
parent a1c3e46dae
commit d016798e92
No known key found for this signature in database
GPG Key ID: 3320C3B3324E934C

View File

@ -171,7 +171,7 @@ export class DatalakeService implements StorageAdapter {
async get (ctx: MeasureContext, wsIds: WorkspaceIds, objectName: string): Promise<Readable> {
const object = await this.retry(ctx, () => this.client.getObject(ctx, wsIds.uuid, objectName))
if (object === undefined) {
throw new NotFoundError('Object not found')
throw new NotFoundError()
}
return object
}
@ -205,7 +205,7 @@ export class DatalakeService implements StorageAdapter {
async read (ctx: MeasureContext, wsIds: WorkspaceIds, objectName: string): Promise<Buffer[]> {
const data = await this.retry(ctx, () => this.client.getObject(ctx, wsIds.uuid, objectName))
if (data === undefined) {
throw new NotFoundError('Object not found')
throw new NotFoundError()
}
const chunks: Buffer[] = []
@ -228,7 +228,7 @@ export class DatalakeService implements StorageAdapter {
this.client.getPartialObject(ctx, wsIds.uuid, objectName, offset, length)
)
if (object === undefined) {
throw new NotFoundError('Object not found')
throw new NotFoundError()
}
return object
}